Skip to content

Commit

Permalink
Revert "Application detection should also allow dots in the path."
Browse files Browse the repository at this point in the history
Ruby 1.9 regression.

This reverts commit 76237f1.
  • Loading branch information
jeremy committed Feb 28, 2010
1 parent 09cb097 commit 6189480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/engine.rb
Expand Up @@ -17,7 +17,7 @@ def inherited(base)
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


Expand Down

0 comments on commit 6189480

Please sign in to comment.