Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants

ka8725 commented Nov 17, 2012

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

ka8725 added some commits Nov 17, 2012

@ka8725 ka8725 Add rake and sqlite3 gems to gemfile to run tests
When I'm trying to run tests in terminal with `rake` command I see the following errors:
* rake should be included to Gemfile
* sqlite3 should be included in the Gemfile
This changes fix these issues
c126d2e
@ka8725 ka8725 Separated validator for :in where
When I pass in where array like ["", ""] it must not generate select like
select * from somthing where id in (NULL)
0179a92

pechorin commented Dec 7, 2012

merge this patch please :))

ka8725 commented Dec 8, 2012

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

ka8725 commented Feb 4, 2014

Added integration with rails 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment