app/models/effective/effective_datatable/resource.rb in effective_datatables-3.1.2 vs app/models/effective/effective_datatable/resource.rb in effective_datatables-3.1.3
- old
+ new
@@ -135,10 +135,10 @@
search[:value] ||= search.delete(:selected) if search.key?(:selected)
search[:as] ||= :select if (search.key?(:collection) && opts[:as] != :belongs_to_polymorphic)
- search[:fuzzy] = (opts[:sql_as_column] != true) unless search.key?(:fuzzy)
+ search[:fuzzy] = true unless search.key?(:fuzzy)
if array_collection? && opts[:resource].present?
search.reverse_merge!(resource.search_form_field(name, collection.first[opts[:index]]))
else
search.reverse_merge!(resource.search_form_field(name, opts[:as]))