Class: Api::V1::OrdersController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::V1::OrdersController
- Includes:
- Concerns::CollectionScope
- Defined in:
- app/controllers/api/v1/orders_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 |
# File 'app/controllers/api/v1/orders_controller.rb', line 6 def index render_collection search_scope end |
#show ⇒ Object
10 11 12 |
# File 'app/controllers/api/v1/orders_controller.rb', line 10 def show render json: scope.find(params.require(:id)) end |