Skip to content
Browse files

overlay debug info only when backtrace is on

  • Loading branch information...
1 parent 4b7ed21 commit b900d24c8bc2a9ce5f30d7ce0957d6aaf0452b6c @mkristian committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datamapper4rails/overlay.rb
View
2 lib/datamapper4rails/overlay.rb
@@ -49,7 +49,7 @@ def source_path(relative_source)
file = path.nil? ? name : path
dirs.each do |dir|
if (f = File.join(dir, file)) and File.exists?(f)
- logger.overlay f
+ logger.overlay f if options[:backtrace]
return f
end
end

0 comments on commit b900d24

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