1
0
Fork 0
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:
Pratik Naik 2010-01-19 17:45:48 +05:30
parent 4148c686ec
commit 9c7c7104f6

View file

@ -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