instance method
==
Ruby on Rails 3.0.20
Since v3.0.20Signature
==(other)
No documentation comment.
Parameters
-
otherreq
Source
# File activerecord/lib/active_record/relation.rb, line 349
def ==(other)
case other
when Relation
other.to_sql == to_sql
when Array
to_a == other.to_a
end
end
Defined in activerecord/lib/active_record/relation.rb line 349
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation