method
any?
rails latest stable - Class:
ActiveRecord::Associations::CollectionAssociation
any?()public
Returns true if the collections is not empty. If block given, loads all records and checks for one or more matches. Otherwise, equivalent to +!collection.empty?+.