I am using Rails 4.2 with activeadmin 1.0.0.pre1 and postgresql 9.3.
My model attribute is a string.
Right now if I filter for "invoice 2011" it will give me results that contain "invoice 2011", which is the default behavior if you select "contains". I want results that either contain "invoice" or "2011" in my case.
I know there is a cont_any chain method on ransack. This is what I am trying to achieve in a filter:
Model.search(attribute_cont_any: %w(invoice 2011))