Method: Caprese::Query#queried_collection

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

#queried_collectionRelation

Gets the collection that was queried, i.e. the sorted & paginated queried_record_scope

Returns:

  • (Relation)

    the queried collection



236
237
238
# File 'lib/caprese/controller/concerns/query.rb', line 236

def queried_collection
  @queried_collection ||= apply_sorting_pagination_to_scope(queried_record_scope)
end