Add enterprise fees relation to enterprise

This commit is contained in:
Rohan Mitchell
2013-08-13 07:22:12 +10:00
parent c011de539d
commit 7e30b664f2

View File

@@ -8,6 +8,7 @@ class Enterprise < ActiveRecord::Base
belongs_to :address, :class_name => 'Spree::Address'
has_many :product_distributions, :foreign_key => 'distributor_id', :dependent => :destroy
has_many :distributed_products, :through => :product_distributions, :source => :product
has_many :enterprise_fees
has_many :enterprise_roles
has_many :users, through: :enterprise_roles