Skip to content
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

How to apply universal formatter to a AjaxDatatablesRails::ActiveRecord class #414

Open
mimeri opened this issue Oct 6, 2022 · 1 comment

Comments

@mimeri
Copy link

mimeri commented Oct 6, 2022

As can be seen in the README at the end of section 3a we can manipulate the value of a search string before querying

My question is, is there a way to universalize the formatter to a class? What if I want all search terms to be stripped of spaces before performing a search? Do I have use this formatter keyword for each field? That would be repetitive.

@n-rodriguez
Copy link
Member

Do I have use this formatter keyword for each field?

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants