From 7e30b664f27df82644b714386c683ddbc6480b9e Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 13 Aug 2013 07:22:12 +1000 Subject: [PATCH] Add enterprise fees relation to enterprise --- app/models/enterprise.rb | 1 + 1 file changed, 1 insertion(+) 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