Skip to content

Commit 92c7910

Browse files
author
Nicolas Rodriguez
committed
Add :like case for :conf, use nil as default value in the switch
1 parent ac1ac04 commit 92c7910

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ajax-datatables-rails/datatable/column.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ def non_regex_search
121121
casted_column.matches("#{formated_value}%")
122122
when :end_with
123123
casted_column.matches("%#{formated_value}")
124-
else
124+
when :like
125125
casted_column.matches("%#{formated_value}%")
126+
else
127+
nil
126128
end
127129
end
128130

0 commit comments

Comments
 (0)