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