Sha256: 15379fbd50508d8220d9264d35d3ebd94477ead86030177f20a940fbd0515c70
Contents?: true
Size: 683 Bytes
Versions: 17
Compression:
Stored size: 683 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] ) 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
17 entries across 17 versions & 1 rubygems