Sha256: 1b4dc47264e2e8bfe1aeddaea5092347353be18006ef5c3ddbbba97fde85fd97
Contents?: true
Size: 434 Bytes
Versions: 4
Compression:
Stored size: 434 Bytes
Contents
module Shop module Models module User def self.included(base) base.class_eval do has_many :orders, :class_name => 'ShopOrder', :foreign_key => :customer_id has_many :billings, :through => :orders has_many :shippings, :through => :orders accepts_nested_attributes_for :orders, :allow_destroy => true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems