The documentation for the MongoDB update method states the following:
multi - indicates whether all criteria for matching documents should be updated, not just one. May be useful with the $ operators below.
, multi - , update_all , .
: - Mongoid . . :
User.where(:gender => "Male").update_all(:title => "Mr")
, , MongoDB , Mongoid update_all $set ( , ).
, , , ( shingara!):
User.collection.update(
{'$in' => {:gender => 'Male'}},
{'$push' => {:titles => 'Mr'}},
{:multi => true}
)