Skip to content

Commit

Permalink
WEB-6415: Add module outcomes details
Browse files Browse the repository at this point in the history
  • Loading branch information
KapilSachdev committed Oct 2, 2023
1 parent ca82657 commit e2cb8ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/parser/content_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ContentModule
VALID_SIMPLE_ATTRIBUTES = %i[shortcode version version_description title
description_md short_description released_at materials_url
professional difficulty platform language editor domains
categories who_is_this_for_md covered_concepts_md git_commit_hash
categories who_is_this_for_md module_outcomes_md covered_concepts_md git_commit_hash
card_artwork_image featured_banner_image twitter_card_image
access_personal access_team].freeze

Expand Down
3 changes: 2 additions & 1 deletion app/models/content_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ class ContentModule

attr_accessor :shortcode, :version, :version_description, :title, :description_md,
:short_description, :released_at, :materials_url, :professional, :difficulty,
:platform, :language, :editor, :domains, :categories, :who_is_this_for_md,
:platform, :language, :editor, :domains, :categories, :who_is_this_for_md, :module_outcomes_md,
:covered_concepts_md, :authors, :lessons, :git_commit_hash, :card_artwork_image,
:featured_banner_image, :twitter_card_image, :root_path, :access_personal,
:access_team

attr_markdown :who_is_this_for, source: :who_is_this_for_md, file: false
attr_markdown :covered_concepts, source: :covered_concepts_md, file: false
attr_markdown :outcomes, source: :module_outcomes_md, file: false
attr_markdown :description, source: :description_md, file: false
attr_image :card_artwork_image_url, source: :card_artwork_image, variants: %i[original w560 w240]
attr_image :featured_banner_image_url, source: :featured_banner_image, variants: %i[original w750 w225 w90]
Expand Down

0 comments on commit e2cb8ef

Please sign in to comment.