raise InvalidDefaultError, 'default values in array block' if filter.default?
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:
{resource_ids: ["", 3, 5]}
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.
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?