examples/scopes.rb in mongo_mapper-0.14.0 vs examples/scopes.rb in mongo_mapper-0.15.0
- old
+ new
@@ -26,10 +26,10 @@
def self.twenties; by_ages(20, 29) end
key :name, String
key :tags, Array
end
-User.collection.remove # empties collection
+User.collection.drop # empties collection
User.create(:name => 'John', :tags => %w[ruby mongo], :age => 28)
User.create(:name => 'Bill', :tags => %w[ruby mongo], :age => 30)
User.create(:name => 'Frank', :tags => %w[mongo], :age => 35)
User.create(:name => 'Steve', :tags => %w[html5 css3], :age => 27)
\ No newline at end of file