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
- #current_currency ⇒ Object private
- #current_pricing_options ⇒ Object private
Instance Method Details
#current_currency ⇒ Object
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 .currency end |
#current_pricing_options ⇒ Object
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 Spree::Config..new( currency: current_store.try!(:default_currency).presence || Spree::Config[:currency], country_iso: current_store.try!(:cart_tax_country_iso).presence ) end |