lib/manage/fields/searcher.rb in manage-1.3.9 vs lib/manage/fields/searcher.rb in manage-1.3.10

- old
+ new

@@ -15,10 +15,10 @@ end end search_class.scope { resource_class.all } - Object.const_set("#{resource_class.name.gsub(/:/, '_') + 'Searcher'}", search_class) + Object.const_set("#{resource_class.name.gsub(/:/, '')}Searcher", search_class) search_fields.select {|f| not f.to_s.include?('.')}.each do |field| field_type = resource_class.columns_hash[field.to_s].type case field_type when *[:text, :string]