Sha256: ed330bc5c1726a8fbc20cbf1be086e9cdcbff157a436315a6d83476b35b7f532
Contents?: true
Size: 791 Bytes
Versions: 34
Compression:
Stored size: 791 Bytes
Contents
# frozen_string_literal: true 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
34 entries across 34 versions & 2 rubygems