Created
September 12, 2012 23:03
-
-
Save tilo/3710644 to your computer and use it in GitHub Desktop.
awesome_print giving NameError: uninitialized constant BSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this still the case with the latest awesome_print 1.1.0?