Method: Valkyrie::Persistence::Postgres::QueryService#count_all_of_model
- Defined in:
- lib/valkyrie/persistence/postgres/query_service.rb
#count_all_of_model(model:) ⇒ Object
Count all records for a specific resource type
41 42 43 |
# File 'lib/valkyrie/persistence/postgres/query_service.rb', line 41 def count_all_of_model(model:) orm_class.where(internal_resource: model.to_s).count end |