Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

overlay debug info only when backtrace is on

  • Loading branch information...
commit b900d24c8bc2a9ce5f30d7ce0957d6aaf0452b6c 1 parent 4b7ed21
Christian Meier authored October 19, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/datamapper4rails/overlay.rb
2  lib/datamapper4rails/overlay.rb
@@ -49,7 +49,7 @@ def source_path(relative_source)
49 49
       file = path.nil? ? name : path
50 50
       dirs.each do |dir|
51 51
         if (f = File.join(dir, file)) and File.exists?(f)
52  
-          logger.overlay f
  52
+          logger.overlay f if options[:backtrace]
53 53
           return f
54 54
         end
55 55
       end

0 notes on commit b900d24

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