Method: ModelSet::RawSQLQuery#count
- Defined in:
- lib/model_set/raw_sql_query.rb
#count ⇒ Object
14 15 16 17 |
# File 'lib/model_set/raw_sql_query.rb', line 14 def count # The only way to get the count if there is a limit is to fetch all ids without the limit. @count ||= limit ? fetch_id_set(@sql).size : size end |