Skip to content

Commit 92fa344

Browse files
committed
Remove useless local variable
1 parent dd899e2 commit 92fa344

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/ajax-datatables-rails/orm/active_record.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ def build_conditions
3737
def build_conditions_for_datatable
3838
columns = searchable_columns.reject(&:searched?)
3939
search_for.inject([]) do |crit, atom|
40-
search = Datatable::SimpleSearch.new(value: atom, regex: datatable.search.regexp?)
4140
crit << columns.map do |simple_column|
42-
simple_column.search = search
41+
simple_column.search = Datatable::SimpleSearch.new(value: atom, regex: datatable.search.regexp?)
4342
simple_column.search_query
4443
end.compact.reduce(:or)
4544
end.compact.reduce(:and)

0 commit comments

Comments
 (0)