Class: BlockLayout
Class Method Summary
collapse
Instance Method Summary
collapse
cache_key, cache_key_name, csv_columns, #expire_cache_key, expire_cache_key, statusable?, #statusable?, to_csv_template, #to_friendly_param, #to_label, #to_select2_response, #to_select2_selection, versionable, #versionable
Class Method Details
.default_layout ⇒ Object
12
13
14
|
# File 'app/models/block_layout.rb', line 12
def self.default_layout
BlockLayout.find_by_slug('default')
end
|
.resource_description ⇒ Object
8
9
10
|
# File 'app/models/block_layout.rb', line 8
def self.resource_description
"A block layout is a grouping of blocks that may appear in a particular part of the page. For example, you may have block layouts that apply to the sidebar or header areas of a page."
end
|
Instance Method Details
#slug_attribute ⇒ Object
16
17
18
|
# File 'app/models/block_layout.rb', line 16
def slug_attribute
display_name
end
|