examples/modifiers/set.rb in mongo_mapper-0.14.0 vs examples/modifiers/set.rb in mongo_mapper-0.15.0

- old
+ new

@@ -8,10 +8,10 @@ include MongoMapper::Document key :name, String key :tags, Array end -User.collection.remove # empties collection +User.collection.drop # empties collection john = User.create(:name => 'John', :tags => %w[ruby mongo], :age => 28) bill = User.create(:name => 'Bill', :tags => %w[ruby mongo], :age => 30) User.set({:name => 'John'}, :tags => %[ruby])