Method: Caprese::Query#show

Defined in:
lib/caprese/controller/concerns/query.rb

#showObject

Standardizes the show action since it always does the same thing



24
25
26
27
28
29
30
# File 'lib/caprese/controller/concerns/query.rb', line 24

def show
  render(
    json: queried_record,
    fields: query_params[:fields],
    include: query_params[:include]
  )
end