# File lib/mongoid/contexts/mongo.rb, line 322 def update_all(attributes = {}) klass.collection.update( selector, { "$set" => attributes }, Safety.merge_safety_options(:multi => true) ).tap do Threaded.clear_options! end end