Module: Shop::Models::Page

Defined in:
lib/shop/models/page.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/shop/models/page.rb', line 5

def self.included(base)
  base.class_eval do
    has_one :shop_category, :dependent => :delete
    has_one :shop_product,  :dependent => :delete
  end
end