Skip to content

Commit 45fde7e

Browse files
committed
fix undefined method #and by removing nils from array
1 parent d37c54a commit 45fde7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def build_conditions_for_datatable
4040
simple_column.search = search
4141
simple_column.search_query
4242
end.reduce(:or)
43-
end.reduce(:and)
43+
end.compact.reduce(:and)
4444
criteria
4545
end
4646

0 commit comments

Comments
 (0)