method
any?
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Relation
any?()public
Returns true if there are any records.
1Note
Should include information about optional block
If a block exists, will return true if any records in the relation is true for the given block. Otherwise, returns true is there are any records.