Sha256: de98649f4c08d33f2e322593f0bdc4783c95c47cbb9589f705073947255e1c8c
Contents?: true
Size: 760 Bytes
Versions: 26
Compression:
Stored size: 760 Bytes
Contents
require 'spree/deprecation' module Spree module Core module ControllerHelpers module Pricing extend ActiveSupport::Concern included do helper_method :current_currency helper_method :current_pricing_options end 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 def current_currency current_pricing_options.currency end deprecate current_currency: :current_pricing_options, deprecator: Spree::Deprecation end end end end
Version data entries
26 entries across 26 versions & 1 rubygems