Class: Blocky::ContentBlock

Inherits:
ActiveRecord::Base
  • Object
show all
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

Instance Method Details

#display_nameObject

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