You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the line recs.wf_filter = self in particular. When I remove this line even the scope is behaving as expected. Not aware of after effects, if I remove this line.
Can someone throw some light over this issue, if it really is?
The text was updated successfully, but these errors were encountered:
I have a scope defined in my model (say User) as
Now, when I access this scope I get two queries as,
But when I use the will_filter directly I don't get the first query, I just get
which is the expected result. The same expected result can be seen when I define a class method similar to the scope in the user model.
In this case also I get the expected result.
My question is why is it misbehaving in Rails scope...or is it the intended behaviour?
Well, on debugging through the gem, I've tracked the problem down to these two lines (893,894) in /app/models/will_filter/filter.rb :
the line
recs.wf_filter = self
in particular. When I remove this line even the scope is behaving as expected. Not aware of after effects, if I remove this line.Can someone throw some light over this issue, if it really is?
The text was updated successfully, but these errors were encountered: