Closed mrudult closed 2 years ago
Is there a way we can change this to accept
:or
?
Yes, just override the existing method :
class MyDatatable < AjaxDatatablesRails::ActiveRecord
def build_conditions_for_selected_columns
search_columns.map(&:search_query).compact.reduce(:or)
end
end
@n-rodriguez Thanks. It worked.
I have got a table where the filters need be joined by
OR
instead ofAND
Is there a way we can change this to accept
:or
?