mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix the named scope equality check
This commit is contained in:
parent
4148c686ec
commit
9c7c7104f6
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def ==(other)
|
||||
to_a == other.to_a
|
||||
other.respond_to?(:to_a) ? to_a == other.to_a : false
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue