examples/simple_object.rb in mongodoc-0.2.1 vs examples/simple_object.rb in mongodoc-0.2.2
- old
+ new
@@ -6,11 +6,9 @@
class Address
attr_accessor :street, :city, :state, :zip, :phone_number
end
-MongoDoc.connect_to_database 'test'
-
collection = MongoDoc::Collection.new('contacts')
collection.drop
contact = Contact.new
contact.name = 'Hashrocket'