1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "Revert "Application detection should also allow dots in the path.""

Works after all. Culprit was 226dfc2.

This reverts commit 6189480b18.
This commit is contained in:
Jeremy Kemper 2010-02-27 17:10:04 -08:00
parent 6189480b18
commit b1b922d6ea

View file

@ -17,7 +17,7 @@ module Rails
base.called_from = begin base.called_from = begin
# Remove the line number from backtraces making sure we don't leave anything behind # Remove the line number from backtraces making sure we don't leave anything behind
call_stack = caller.map { |p| p.split(':')[0..-2].join(':') } call_stack = caller.map { |p| p.split(':')[0..-2].join(':') }
File.dirname(call_stack.detect { |p| p !~ %r[railties[\w\-]*/lib/rails|rack[\w\-]*/lib/rack] }) File.dirname(call_stack.detect { |p| p !~ %r[railties[\w\-\.]*/lib/rails|rack[\w\-\.]*/lib/rack] })
end end
end end