instance method
many?
Ruby on Rails 4.2.9
Since v3.0.20Signature
many?()
Returns true if there is more than one record.
Source
# File activerecord/lib/active_record/relation.rb, line 282
def many?
if block_given?
to_a.many? { |*block_args| yield(*block_args) }
else
limit_value ? to_a.many? : size > 1
end
end
Defined in activerecord/lib/active_record/relation.rb line 282
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation