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

- old
+ new

@@ -15,10 +15,10 @@ end end search_class.scope { resource_class.all } - Object.const_set("#{resource_class.name + '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]