diff --git a/lib/sunspot/index_queue/entry/active_record_impl.rb b/lib/sunspot/index_queue/entry/active_record_impl.rb index 8540dc4..d67f05a 100644 --- a/lib/sunspot/index_queue/entry/active_record_impl.rb +++ b/lib/sunspot/index_queue/entry/active_record_impl.rb @@ -92,7 +92,7 @@ def add(klass, id, delete, priority) end # Implementation of the delete_entries method. - def delete_entries(ids) + def delete_entries (ids) delete_all(:id => ids) end diff --git a/lib/sunspot/index_queue/entry/data_mapper_impl.rb b/lib/sunspot/index_queue/entry/data_mapper_impl.rb index d5efbba..cda57fc 100644 --- a/lib/sunspot/index_queue/entry/data_mapper_impl.rb +++ b/lib/sunspot/index_queue/entry/data_mapper_impl.rb @@ -83,7 +83,7 @@ def add(klass, id, delete, priority) end # Implementation of the delete_entries method. - def delete_entries(ids) + def delete_entries (ids) all(:id => ids).destroy! end end diff --git a/lib/sunspot/index_queue/entry/mongo_impl.rb b/lib/sunspot/index_queue/entry/mongo_impl.rb index 8b4d62e..1420b02 100644 --- a/lib/sunspot/index_queue/entry/mongo_impl.rb +++ b/lib/sunspot/index_queue/entry/mongo_impl.rb @@ -141,7 +141,7 @@ def add(klass, id, delete, priority) end # Implementation of the delete_entries method. - def delete_entries(ids) + def delete_entries (ids) collection.remove(:_id => {'$in' => ids}) end end