Method: JSONAPI::Resource.count_records
- Defined in:
- lib/jsonapi/resource.rb
.count_records(records) ⇒ Object
Assumes ActiveRecord’s counting. Override if you need a different counting method
722 723 724 |
# File 'lib/jsonapi/resource.rb', line 722 def count_records(records) records.count(:all) end |