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 was226dfc2
. This reverts commit6189480b18
.
This commit is contained in:
parent
6189480b18
commit
b1b922d6ea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue