diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index b325257bc6..4379788dfc 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -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