mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Application detection should also allow dots in the path.
This commit is contained in:
parent
1ff7e566fd
commit
76237f163f
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module Rails
|
|||
base.called_from = begin
|
||||
# Remove the line number from backtraces making sure we don't leave anything behind
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue