Class: Sprangular::OrdersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/sprangular/orders_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#invalid_resource!, #not_found, #unauthorized

Instance Method Details

#showObject



4
5
6
7
8
9
10
# File 'app/controllers/sprangular/orders_controller.rb', line 4

def show
  authorize! :show, @user

  @order = Spree::Order.where(number: params[:id]).first!

  render 'spree/api/orders/show'
end