Sha256: 15fa1fed3a5ad863adea747a3a1390bebd6bd1fc661b3dbb11e00fbd97451be4
Contents?: true
Size: 361 Bytes
Versions: 3
Compression:
Stored size: 361 Bytes
Contents
module Shop module Models module Page def self.included(base) base.class_eval do belongs_to :shop_category, :class_name => 'ShopCategory', :foreign_key => 'shop_category_id' belongs_to :shop_product, :class_name => 'ShopProduct', :foreign_key => 'shop_product_id' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-shop-extension-0.10.0 | lib/shop/models/page.rb |
radiant-shop-extension-0.9.3 | lib/shop/models/page.rb |
radiant-shop-extension-0.9.2 | lib/shop/models/page.rb |