activerecord-hackery / meta_search

Object-based searching (and more) for simply creating search forms. Not currently maintained.
http://erniemiller.org/2013/11/17/anyone-interested-in-activerecord-hackery/
MIT License
903 stars 140 forks source link

Validator for "in" where clause and integration with Rails 4 #112

Open ka8725 opened 11 years ago

ka8725 commented 11 years ago

List of checkboxes for form helper generates array of params like this (I don't select any checkbox and use "id_in" predicate):

[""]

Validator pass them and gem generates wrong select like this:

select * from smth where id in (NULL)

So my changes fix this issue

pechorin commented 11 years ago

merge this patch please :))

ka8725 commented 11 years ago

It seems that @ernie has no longer supported this gem - the last change was 1 year ago

ka8725 commented 10 years ago

Added integration with rails 4