Skip to content

Instantly share code, notes, and snippets.

@thomasdziedzic
Created December 6, 2012 03:58
Show Gist options
  • Save thomasdziedzic/4221668 to your computer and use it in GitHub Desktop.
Save thomasdziedzic/4221668 to your computer and use it in GitHub Desktop.
[22] pry(main)> work_items.all
=> [{"_id"=>BSON::ObjectId('50c015a96740747127000011'),
"who"=>"asdf",
"goal"=>"Looking for work",
"description"=>"asdf"},
{"_id"=>BSON::ObjectId('50c015c36740747127000012'),
"who"=>"asdf",
"goal"=>"Looking for work",
"description"=>"asdf"}]
[23] pry(main)> work_items.remove '_id' => '50c015a96740747127000011'
=> true
[24] pry(main)> work_items.all
=> [{"_id"=>BSON::ObjectId('50c015a96740747127000011'),
"who"=>"asdf",
"goal"=>"Looking for work",
"description"=>"asdf"},
{"_id"=>BSON::ObjectId('50c015c36740747127000012'),
"who"=>"asdf",
"goal"=>"Looking for work",
"description"=>"asdf"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment