Permalink
Browse files

Revert "Revert "Application detection should also allow dots in the p…

…ath.""

Works after all. Culprit was 226dfc2.

This reverts commit 6189480.
  • Loading branch information...
1 parent 6189480 commit b1b922d6ea96bca0d0406032b02b1cd4b6e7f6c7 @jeremy jeremy committed Feb 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/engine.rb
View
2 railties/lib/rails/engine.rb
@@ -17,7 +17,7 @@ def inherited(base)
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

0 comments on commit b1b922d

Please sign in to comment.