Permalink
Browse files

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

Ruby 1.9 regression.

This reverts commit 76237f1.
  • Loading branch information...
1 parent 09cb097 commit 6189480b1878cdadb092fdfa32ba156a91e6a0e1 @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 6189480

Please sign in to comment.