Class: Blocky::ContentBlock
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Blocky::ContentBlock
- Defined in:
- app/models/blocky/content_block.rb
Overview
A block of HTML content that can be rendered on one or multiple pages.
Instance Method Summary collapse
-
#display_name ⇒ Object
Returns the description of the content block if it exists.
Instance Method Details
#display_name ⇒ Object
Returns the description of the content block if it exists. The content key is used as a fallback if there is no description.
13 14 15 |
# File 'app/models/blocky/content_block.rb', line 13 def display_name description.blank? ? content_key : description end |