Mongoid and awesome_print, a simple patch!

Just a couple of days ago I had the need to print out some Ruby objects on my terminal in a nice and well formatted way.

The default p wasn’t enough for me and so, with just a couple of keystrokes, I end up on the github page of the well known awesome_print gem.

After adding the gem to my gem .gemspec (yep I need the pretty printing feature for my first gem :)) and requiring it inside the code I stumbled upon a little problem.

Here it is:


uninitialized constant Moped::BSON (NameError)

Continue reading “Mongoid and awesome_print, a simple patch!”