Fix missing EnterpriseFee::Calculator error

Conflicts:
	app/models/enterprise_fee.rb
This commit is contained in:
Rohan Mitchell
2016-05-13 12:30:10 +10:00
parent ab707cf312
commit 0d4c4f20df

View File

@@ -16,6 +16,10 @@ class EnterpriseFee < ActiveRecord::Base
calculated_adjustments
# Class name is mis-inferred outside of Spree namespace
has_one :calculator, as: :calculable, dependent: :destroy, class_name: 'Spree::Calculator'
attr_accessible :enterprise_id, :fee_type, :name, :tax_category_id, :calculator_type, :inherits_tax_category
FEE_TYPES = %w(packing transport admin sales fundraising)