Fix the named scope equality check
This commit is contained in:
parent
4148c686ec
commit
9c7c7104f6
@ -182,7 +182,7 @@ def count(*args)
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
to_a == other.to_a
|
||||
other.respond_to?(:to_a) ? to_a == other.to_a : false
|
||||
end
|
||||
|
||||
private
|
||||
|
Loading…
Reference in New Issue
Block a user