Module Cms::Acts::ContentBlock::MacroMethods
In: lib/cms/acts/content_block.rb

Methods

Included Modules

InstanceMethods

Classes and Modules

Module Cms::Acts::ContentBlock::MacroMethods::InstanceMethods

Public Instance methods

[Source]

    # File lib/cms/acts/content_block.rb, line 8
 8:         def acts_as_content_block(options={})
 9:           belongs_to_attachment(options[:belongs_to_attachment].is_a?(Hash) ? options[:belongs_to_attachment] : {}) if options[:belongs_to_attachment]
10:           is_archivable(options[:archiveable].is_a?(Hash) ? options[:archiveable] : {}) unless options[:archiveable] == false
11:           is_connectable(options[:connectable].is_a?(Hash) ? options[:connectable] : {}) unless options[:connectable] == false
12:           flush_cache_on_change(options[:flush_cache_on_change].is_a?(Hash) ? options[:flush_cache_on_change] : {}) unless options[:flush_cache_on_change] == false
13:           is_renderable({:instance_variable_name_for_view => "@content_block"}.merge(options[:renderable].is_a?(Hash) ? options[:renderable] : {})) unless options[:renderable] == false
14:           is_publishable(options[:publishable].is_a?(Hash) ? options[:publishable] : {}) unless options[:publishable] == false
15:           is_searchable(options[:searchable].is_a?(Hash) ? options[:searchable] : {}) unless options[:searchable] == false
16:           uses_soft_delete(options[:soft_delete].is_a?(Hash) ? options[:soft_delete] : {}) unless options[:soft_delete] == false
17:           is_taggable(options[:taggable].is_a?(Hash) ? options[:taggable] : {}) if options[:taggable]
18:           is_userstamped(options[:userstamped].is_a?(Hash) ? options[:userstamped] : {}) unless options[:userstamped] == false  
19:           is_versioned(options[:versioned].is_a?(Hash) ? options[:versioned] : {}) unless options[:versioned] == false
20:         
21:           include InstanceMethods
22:         end

[Validate]