Created
October 27, 2011 02:07
-
-
Save dchentech/1318601 to your computer and use it in GitHub Desktop.
Logging mongoid into Rails.logger
This file contains hidden or 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
Mongoid.configure do |config| | |
config.master = Mongo::Connection.new(ENV['MONGOID_HOST'], ENV['MONGOID_PORT'], :logger => Rails.logger).db(ENV['MONGOID_DATABASE']) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment