Module: GroupedPage

Defined in:
lib/grouped_page.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/grouped_page.rb', line 3

def self.included(base)
  base.class_eval {
    has_groups
    has_one :homegroup, :foreign_key => 'homepage_id', :class_name => 'Group'
    include InstanceMethods
    alias_method_chain :group_ids, :inheritance
    alias_method_chain :cache?, :restrictions
  }
end