examples/keys.rb in mongo_mapper-0.13.0.beta2 vs examples/keys.rb in mongo_mapper-0.13.0
- old
+ new
@@ -22,11 +22,11 @@
:first_name => 'John',
:last_name => 'Nunemaker',
:age => 28,
:skills => ['ruby', 'mongo', 'javascript'],
:links => {"Google" => "http://www.google.com"}
-})
+})
steve = User.create({
:first_name => 'Steve',
:last_name => 'Smith',
:age => 29,
@@ -35,6 +35,6 @@
john.friend_ids << steve.id.to_s # will get typecast to ObjectId
john.links["Ruby on Rails"] = "http://www.rubyonrails.com"
john.save
-pp john
\ No newline at end of file
+pp john