Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow backend productAutocomplete to support a custom ransack query
From this change, when initializing a productAutocomplete, a callback can be given to the ransack_q_callback option. This callback should return a hash for the ransack search. The callback also allows for one argument, which is the string typed in the select2 (term).
- Loading branch information