Permalink
Browse files

Set logger on connection to Rails.logger

Closes #216
  • Loading branch information...
1 parent 62146a3 commit 70581fa741d21a48bd739534a464db7fabcaf7b7 @bkeepers bkeepers committed Mar 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo_mapper/railtie.rb
View
2 lib/mongo_mapper/railtie.rb
@@ -25,7 +25,7 @@ class Railtie < Rails::Railtie
config_file = Rails.root.join('config/mongo.yml')
if config_file.file?
config = YAML.load(ERB.new(config_file.read).result)
- MongoMapper.setup(config, Rails.env)
+ MongoMapper.setup(config, Rails.env, :logger => Rails.logger)
end
end

0 comments on commit 70581fa

Please sign in to comment.