Module: Sprangular::ApiCheckoutControllerDecorator

Defined in:
app/controllers/spree/api/checkouts_controller_decorator.rb

Instance Method Summary collapse

Instance Method Details

#quick_updateObject



2
3
4
5
6
7
8
9
# File 'app/controllers/spree/api/checkouts_controller_decorator.rb', line 2

def quick_update
  load_order(true)
  authorize! :update, @order, order_token

  Sprangular::OrderUpdater.update(@order, request, params)

  respond_with(@order, default_template: 'spree/api/orders/show')
end