Skip to content

Commit

Permalink
Merge pull request #225 from razeware/WEB-6534
Browse files Browse the repository at this point in the history
WEB-6534: Make lesson ref mandatory
  • Loading branch information
KapilSachdev authored Oct 13, 2023
2 parents 456e0e1 + e2d21ac commit 3bbcd31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/renderer/lesson.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Lesson
attr_accessor :disable_transcripts

def render
logger.info "Beginning lesson render: #{object.title}"
logger.info "Beginning lesson render: #{object.ref} #{object.title}"
attach_images
render_markdown
object.segments.each do |segment|
Expand Down
2 changes: 1 addition & 1 deletion app/models/lesson.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Lesson

attr_markdown :description, source: :description_md, file: false
attr_markdown :learning_objectives, source: :learning_objectives_md, file: false
validates :title, :ordinal, presence: true
validates :title, :ordinal, :ref, presence: true

def initialize(attributes = {})
super
Expand Down

0 comments on commit 3bbcd31

Please sign in to comment.