Module: Spree::CheckoutControllerDecorator

Defined in:
app/controllers/spree/checkout_controller_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



3
4
5
6
7
8
# File 'app/controllers/spree/checkout_controller_decorator.rb', line 3

def self.prepended(base)
  base.include Spree::BraintreeHelper
  base.helper_method [:asset_available?, :options_from_braintree_payments]
  base.after_action :allow_braintree_iframe
  base.after_action :update_source_data, only: :update, if: proc { params[:state].eql?('payment') }
end