Module: Spree::CalculatedAdjustments
- Extended by:
- ActiveSupport::Concern
- Included in:
- ShippingMethod, TaxRate
- Defined in:
- app/models/concerns/spree/calculated_adjustments.rb
Instance Method Summary collapse
Instance Method Details
#calculator_type ⇒ Object
13 14 15 |
# File 'app/models/concerns/spree/calculated_adjustments.rb', line 13 def calculator_type calculator.class.to_s if calculator end |
#calculator_type=(calculator_type) ⇒ Object
17 18 19 20 |
# File 'app/models/concerns/spree/calculated_adjustments.rb', line 17 def calculator_type=(calculator_type) klass = calculator_type.constantize if calculator_type self.calculator = klass.new if klass && !calculator.instance_of?(klass) end |