Sha256: cef140b3008b44220e54b319156fc2a85159d1864274e744b7073a2c86cb201b
Contents?: true
Size: 619 Bytes
Versions: 32
Compression:
Stored size: 619 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.from_context(self) 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
32 entries across 32 versions & 1 rubygems