lib/datamapper4rails/overlay.rb in datamapper4rails-0.3.0 vs lib/datamapper4rails/overlay.rb in datamapper4rails-0.3.1
- old
+ new
@@ -47,10 +47,10 @@
dirs.freeze
end
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
end