jbox-web / ajax-datatables-rails

A wrapper around DataTable's ajax methods that allow synchronization with server-side pagination in a Rails app
MIT License
587 stars 228 forks source link

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

Open mimeri opened 2 years ago

mimeri commented 2 years ago

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 commented 10 months ago

Do I have use this formatter keyword for each field?

yes