Method: Caprese::Query#index
- Defined in:
- lib/caprese/controller/concerns/query.rb
#index ⇒ Object
Standardizes the index action since it always does the same thing
15 16 17 18 19 20 21 |
# File 'lib/caprese/controller/concerns/query.rb', line 15 def index render( json: queried_collection, fields: query_params[:fields], include: query_params[:include] ) end |