Open steveyken opened 10 years ago
Basically, swapping 'is' for 'contains' on fields that are multi-select would be awesome. Can you point me in the right direction to fix this?
@ndbroadbent any hints on how to change an 'is' to a 'contains' will try to look at this tomorrow.
My internal hack was to do Ransack.option_predicates.push('cont')
but perhaps need to do something better here.
When searching for values in checkbox custom fields, ransack_ui doesn't generate the correct SQL for finding items.
Current SQL is
And the data in the table is stored in a YAML array format as:
This would be picked up in a ransack
contains
query but not an 'is
query. However,is
is the only option ascontains
has disappeared in the most recent version.Is there an easy way to get the following like query back via the contains option?