Closed zacheryph closed 6 years ago
They don't do the same thing. Note that Model.field_is_any([]).count == Model.count.
I was pointing Out That search() requires using a named_scope. These named Scopes made by search logic. The named scope directly and "the named scope" that search() is hitting do not match. Why would they differ?
Also, this might be a duplicate of issue #64.
And issue #57.
one of the examples, works as a stand alone scope but not when used in Model#searchlogic()
This is locally on current app with code from commit (d6225e982aba)
However. using
field_equals_any
in searchlogic() does work. Is there a reason there is a differentiation between the two and they dont match eachother?