Module: Spree::CheckoutControllerDecorator
- Defined in:
- app/decorators/controllers/spree/checkout_controller_decorator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
5 6 7 8 |
# File 'app/decorators/controllers/spree/checkout_controller_decorator.rb', line 5 def self.prepended(base) base.class_eval do end end |
Instance Method Details
#before_address ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/decorators/controllers/spree/checkout_controller_decorator.rb', line 10 def before_address flash[:checkout_initiated] = @order.address? && request.referrer =~ /#{cart_path}\b/i && params[:action] == 'edit' super end |