Method: Valkyrie::Persistence::Postgres::QueryService#find_all
- Defined in:
- lib/valkyrie/persistence/postgres/query_service.rb
#find_all ⇒ Array<Valkyrie::Resource>
Retrieve all records for the resource and construct Valkyrie Resources
for each record
22 23 24 25 26 |
# File 'lib/valkyrie/persistence/postgres/query_service.rb', line 22 def find_all orm_class.find_each.lazy.map do |orm_object| resource_factory.to_resource(object: orm_object) end end |