Skip to content
Browse files

Log for datamapper too

  • Loading branch information...
1 parent 8239297 commit d29e7777812b6da14475ec1d9b3e30b94868ce5a @lucapette committed Oct 4, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 pryrc
View
10 pryrc
@@ -28,8 +28,14 @@ end
if defined?(Rails) && Rails.env
require 'logger'
- ActiveRecord::Base.logger = Logger.new(STDOUT)
- ActiveRecord::Base.clear_active_connections!
+ if defined?(ActiveRecord)
+ ActiveRecord::Base.logger = Logger.new(STDOUT)
+ ActiveRecord::Base.clear_active_connections!
+ end
+
+ if defined?(DataMapper)
+ DataMapper::Logger.new($stdout, :debug)
+ end
require_without_bundler 'hirb'

0 comments on commit d29e777

Please sign in to comment.
Something went wrong with that request. Please try again.