instance method
many?
Ruby on Rails 6.0.6
Since v3.0.20Signature
many?()
Returns true if there is more than one record.
Source
# File activerecord/lib/active_record/relation.rb, line 289
def many?
return super if block_given?
limit_value ? records.many? : size > 1
end
Defined in activerecord/lib/active_record/relation.rb line 289
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation