Class: Api::V1::OrderArticlesController

Inherits:
BaseController
  • Object
show all
Includes:
Concerns::CollectionScope
Defined in:
app/controllers/api/v1/order_articles_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/api/v1/order_articles_controller.rb', line 6

def index
  render_collection search_scope
end

#showObject



10
11
12
# File 'app/controllers/api/v1/order_articles_controller.rb', line 10

def show
  render json: scope.find(params.require(:id))
end