Skip to content

Instantly share code, notes, and snippets.

@hui
Created January 6, 2010 03:32
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 hui/269981 to your computer and use it in GitHub Desktop.
Save hui/269981 to your computer and use it in GitHub Desktop.
if Rails.env != 'production'
logger = Logger.new(Rails.root.join('log', 'mongodb.log'))
MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017, :logger => logger)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment