berk / will_filter

rails engine plugin for filtering active_record model objects
MIT License
157 stars 76 forks source link

left joins as well as inner joins? #63

Closed andersodt closed 4 years ago

andersodt commented 7 years ago

I am running into some trouble joining on a table that I have -- lets say I have a user who has some optional set of hobbies, so I join on the user_hobbies table. It works really well, but I have been running into an issue where users who have not selected any hobbies are missing completely (presumably because it's joining on the table even if it's not being currently filtered).

Is there a way to get the gem to return all users, even those that do not have items in the inner_join table?