ajax-datatables-rails
ajax-datatables-rails copied to clipboard
How to apply universal formatter to a AjaxDatatablesRails::ActiveRecord class
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.
Do I have use this formatter keyword for each field?
yes