-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does array items accept default nil or not #515
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Array filter has this example on the top of the class:
https://github.com/AaronLasseigne/active_interaction/blob/master/lib/active_interaction/filters/array_filter.rb#L18-L21
But on implementation has this:
https://github.com/AaronLasseigne/active_interaction/blob/master/lib/active_interaction/filters/array_filter.rb#L108
Maybe I am missing something but it looks conflicting.
Just to be clear on the use-case I am trying to get the list of ids from a multi checkbox field and rails send params like this:
Rails would ignore that first item when more items are added to the list and take that array with only one empty string in probably to tell the difference between key not send and key sent with empty list.
Is this multiple checkbox use case supported?
The text was updated successfully, but these errors were encountered: