Module: BaSpree::StoreControllerDecorator
- Defined in:
- app/controllers/ba_spree/store_controller_decorator.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/ba_spree/store_controller_decorator.rb', line 3 def self.prepended(base) base.helper_method :stored_location # Issue #1219: 価格表(price_list)を一覧・関連・セールラベルでログイン中ユーザの # グループに反映させるため、リクエスト毎に pricing_user を Spree::Current へ設定する。 # Product#lowest_price / #on_sale? / #price_varies? (product_decorator) がこれを参照する。 base.before_action :set_current_pricing_user end |