Skip to content

Commit

Permalink
WEB-6415: Add text content ref details
Browse files Browse the repository at this point in the history
  • Loading branch information
KapilSachdev committed Oct 2, 2023
1 parent e2cb8ef commit dc6cd08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/lib/renderer/segment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def self.create(model, image_provider:)
end

def render
logger.info "Beginning episode render: #{object.ordinal}: #{object.title}"
logger.info "Beginning segment render: #{object.ref}: #{object.title}"
render_markdown
end
end
Expand Down
4 changes: 2 additions & 2 deletions app/models/lesson.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Lesson
include Concerns::ImageAttachable
include Concerns::MarkdownRenderable

attr_accessor :title, :description, :ordinal, :segments
attr_accessor :title, :description, :ordinal, :ref, :segments

validates :title, :ordinal, presence: true

Expand All @@ -18,7 +18,7 @@ def initialize(attributes = {})

# Used for serialisation
def attributes
{ title: nil, description: nil, ordinal: nil, segments: [] }.stringify_keys
{ title: nil, description: nil, ordinal: nil, segments: [], ref: nil }.stringify_keys
end

# Used for linting
Expand Down
2 changes: 1 addition & 1 deletion app/models/text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def slug

# Used for serialisation
def attributes
{ title: nil, ordinal: nil, description: nil, body: nil, authors: [], free: false, episode_type: nil }.stringify_keys
{ title: nil, ordinal: nil, description: nil, body: nil, authors: [], free: false, episode_type: nil, ref: nil }.stringify_keys
end

# Used for linting
Expand Down

0 comments on commit dc6cd08

Please sign in to comment.