Skip to content

Commit 73f4301

Browse files
author
Nicolas Rodriguez
committed
Don't shadow variable name
1 parent 8edb456 commit 73f4301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def build_conditions
3434

3535
def build_conditions_for_datatable
3636
search_for = datatable.search.value.split(' ')
37-
criteria = search_for.inject([]) do |criteria, atom|
37+
criteria = search_for.inject([]) do |crit, atom|
3838
search = Datatable::SimpleSearch.new({ value: atom, regex: datatable.search.regexp? })
39-
criteria << searchable_columns.map do |simple_column|
39+
crit << searchable_columns.map do |simple_column|
4040
simple_column.search = search
4141
simple_column.search_query
4242
end.reduce(:or)

0 commit comments

Comments
 (0)