We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8edb456 commit 73f4301Copy full SHA for 73f4301
lib/ajax-datatables-rails/orm/active_record.rb
@@ -34,9 +34,9 @@ def build_conditions
34
35
def build_conditions_for_datatable
36
search_for = datatable.search.value.split(' ')
37
- criteria = search_for.inject([]) do |criteria, atom|
+ criteria = search_for.inject([]) do |crit, atom|
38
search = Datatable::SimpleSearch.new({ value: atom, regex: datatable.search.regexp? })
39
- criteria << searchable_columns.map do |simple_column|
+ crit << searchable_columns.map do |simple_column|
40
simple_column.search = search
41
simple_column.search_query
42
end.reduce(:or)
0 commit comments