Module: Cms::Acts::ContentBlock::MacroMethods
- Defined in:
- lib/cms/acts/content_block.rb
Defined Under Namespace
Modules: InstanceMethods
Instance Method Summary collapse
Instance Method Details
#acts_as_content_block(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cms/acts/content_block.rb', line 8 def acts_as_content_block(={}) ([:belongs_to_attachment].is_a?(Hash) ? [:belongs_to_attachment] : {}) if [:belongs_to_attachment] is_archivable([:archiveable].is_a?(Hash) ? [:archiveable] : {}) unless [:archiveable] == false is_connectable([:connectable].is_a?(Hash) ? [:connectable] : {}) unless [:connectable] == false flush_cache_on_change([:flush_cache_on_change].is_a?(Hash) ? [:flush_cache_on_change] : {}) unless [:flush_cache_on_change] == false is_renderable({:instance_variable_name_for_view => "@content_block"}.merge([:renderable].is_a?(Hash) ? [:renderable] : {})) unless [:renderable] == false is_publishable([:publishable].is_a?(Hash) ? [:publishable] : {}) unless [:publishable] == false is_searchable([:searchable].is_a?(Hash) ? [:searchable] : {}) unless [:searchable] == false uses_soft_delete([:soft_delete].is_a?(Hash) ? [:soft_delete] : {}) unless [:soft_delete] == false is_taggable([:taggable].is_a?(Hash) ? [:taggable] : {}) if [:taggable] is_userstamped([:userstamped].is_a?(Hash) ? [:userstamped] : {}) unless [:userstamped] == false is_versioned([:versioned].is_a?(Hash) ? [:versioned] : {}) unless [:versioned] == false include InstanceMethods end |