diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-26 02:35:14 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-26 02:35:14 +0100 |
commit | 76237f163ff7ad2a64af926030e3449c547cafa2 (patch) | |
tree | a9d5e146463fb03dbd8930ad036c786c7dd119f1 /railties | |
parent | 1ff7e566fdd09675877753063487b0589be53aac (diff) | |
download | rails-76237f163ff7ad2a64af926030e3449c547cafa2.tar.gz rails-76237f163ff7ad2a64af926030e3449c547cafa2.tar.bz2 rails-76237f163ff7ad2a64af926030e3449c547cafa2.zip |
Application detection should also allow dots in the path.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 1696bb7b86..479d753614 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -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 |