Module: Cms::ContextAssociation

Defined in:
lib/liquid_cms/context_association.rb

Class Method Summary collapse

Class Method Details

.extended(other) ⇒ Object



9
10
11
12
# File 'lib/liquid_cms/context_association.rb', line 9

def ContextAssociation.extended(other)
  other.has_many :pages, :class_name => 'Cms::Page', :dependent => :destroy, :foreign_key => :context_id, :extend => PageAssociationMethods
  other.has_many :assets, :class_name => 'Cms::Asset', :dependent => :destroy, :foreign_key => :context_id
end