Module Cms::Behaviors::Hiding::MacroMethods
In: lib/cms/behaviors/hiding.rb

Methods

Included Modules

InstanceMethods

Public Instance methods

[Source]

    # File lib/cms/behaviors/hiding.rb, line 8
 8:         def hideable?
 9:           !!@is_hideable
10:         end

[Source]

    # File lib/cms/behaviors/hiding.rb, line 11
11:         def is_hideable(options={})
12:           @is_hideable = true
13:           extend ClassMethods
14:           include InstanceMethods
15:         
16:           named_scope :hidden, :conditions => {:hidden => true}
17:           named_scope :not_hidden, :conditions => {:hidden => false}        
18:         end

[Validate]