Skip to content

Instantly share code, notes, and snippets.

@tilo
Created September 12, 2012 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tilo/3710644 to your computer and use it in GitHub Desktop.
Save tilo/3710644 to your computer and use it in GitHub Desktop.
awesome_print giving NameError: uninitialized constant BSON
# work-around a bug in awesome_print gem, after Mongoid is no longer using BSON, but Moped::BSON
# put this in your Rails project as: ./config/initializers/awesome_print.rb
BSON=Moped::BSON if defined?(AwesomePrint) # conditional, in case you don't add awesome_print in production
@michaeldv
Copy link

Is this still the case with the latest awesome_print 1.1.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment