mongoid-data_table 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -77,7 +77,7 @@ module Mongoid
|
|
77
77
|
def filter_conditions
|
78
78
|
return unless (query = params[:sSearch]).present?
|
79
79
|
|
80
|
-
{"$or" => klass.
|
80
|
+
{"$or" => klass.data_table_searchable_fields.map { |field| { field => /#{query}/i} } }
|
81
81
|
end
|
82
82
|
|
83
83
|
def filter_field_conditions
|