Class: ActiveRecord::Relation
- Defined in:
- lib/rmtools/active_record/base.rb
Instance Method Summary collapse
Instance Method Details
#any? ⇒ Boolean
184 185 186 |
# File 'lib/rmtools/active_record/base.rb', line 184 def any? limit(1).count != 0 end |
#empty? ⇒ Boolean
188 189 190 |
# File 'lib/rmtools/active_record/base.rb', line 188 def empty? limit(1).count == 0 end |