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
So, I've found that cannot find do ... end on relationships. Which is not nice. Seems a little bit counterintuitive.
Would you be open to get a MR that detects if the method is receiving a block and use the collection instead of searching?
This was possible with Her gem and we also were using it before.
Something along these lines...
# Overrides Enumerable find
def find(id, &block)
return scoping { klass.find(id) } if id
super
end
Really nice project here, thanks for all the good work!
The text was updated successfully, but these errors were encountered:
Thank you @barrerajl!
Is this the case just for relations or for f.ex User.find do ... end as well?
If you're happy to set up some tests/fix for this, that sounds good to me.
So, I've found that cannot
find do ... end
on relationships. Which is not nice. Seems a little bit counterintuitive.Would you be open to get a MR that detects if the method is receiving a block and use the collection instead of searching?
This was possible with
Her
gem and we also were using it before.Something along these lines...
Really nice project here, thanks for all the good work!
The text was updated successfully, but these errors were encountered: