Method: ActiveRecord::Relation#==
- Defined in:
- lib/active_record/relation.rb
#==(other) ⇒ Object
Compares two relations for equality.
605 606 607 608 609 610 611 612 613 614 |
# File 'lib/active_record/relation.rb', line 605 def ==(other) case other when Associations::CollectionProxy, AssociationRelation self == other.to_a when Relation other.to_sql == to_sql when Array to_a == other end end |