Sha256: 50d97884e1246cb7df87eb551b52e5a965cc8ab2d34ee791a750d4078fd832bc
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
module Shop module Models module User def self.included(base) base.class_eval do has_one :billing, :class_name => 'ShopBilling', :as => :addressable has_one :shipping, :class_name => 'ShopShipping', :as => :addressable has_many :orders, :class_name => 'ShopOrder', :foreign_key => :customer_id accepts_nested_attributes_for :orders, :allow_destroy => true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-shop-extension-0.91.3 | lib/shop/models/user.rb |
radiant-shop-extension-0.91.2 | lib/shop/models/user.rb |