Module: Spree::Core::ControllerHelpers::Pricing Private

Extended by:
ActiveSupport::Concern
Included in:
Order
Defined in:
lib/spree/core/controller_helpers/pricing.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#current_currencyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
# File 'lib/spree/core/controller_helpers/pricing.rb', line 21

def current_currency
  current_pricing_options.currency
end

#current_pricing_optionsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
17
18
19
# File 'lib/spree/core/controller_helpers/pricing.rb', line 14

def current_pricing_options
  Spree::Config.pricing_options_class.new(
    currency: current_store.try!(:default_currency).presence || Spree::Config[:currency],
    country_iso: current_store.try!(:cart_tax_country_iso).presence
  )
end