jhund / filterrific

Filterrific is a Rails Engine plugin that makes it easy to filter, search, and sort your ActiveRecord lists.
http://filterrific.clearcove.ca
MIT License
910 stars 124 forks source link

Update the params_set to work with bool values #224

Open grantmca opened 1 year ago

grantmca commented 1 year ago

I noticed while working on https://github.com/rubyforgood/human-essentials/pull/3623 that you are are able to pass true into filterrific and it will be handled how you expect, however when you pass in false as a param it does not make it to the scope because it is filtered out by .present? and .blank? checks. I updated the param_set to take this into account and updated the spec to test it.