Method: Mongoid::Criteria#blank?
- Defined in:
- lib/mongoid/criteria.rb
#blank? ⇒ Boolean Also known as: empty?
Returns true if the criteria is empty.
Example:
criteria.blank?
84 85 86 |
# File 'lib/mongoid/criteria.rb', line 84 def blank? count < 1 end |