lib/sunspot/indexer.rb in sunspot-2.1.1 vs lib/sunspot/indexer.rb in sunspot-2.2.0

- old
+ new

@@ -6,11 +6,10 @@ # from the Solr index. An Indexer instance is associated with a particular # setup, and thus is capable of indexing instances of a certain class (and its # subclasses). # class Indexer #:nodoc: - include RSolr::Char def initialize(connection) @connection = connection end @@ -53,10 +52,10 @@ # # Delete all documents of the class indexed by this indexer from Solr. # def remove_all(clazz = nil) if clazz - @connection.delete_by_query("type:#{escape(clazz.name)}") + @connection.delete_by_query("type:#{Util.escape(clazz.name)}") else @connection.delete_by_query("*:*") end end