aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-02-26 02:35:14 +0100
committerJosé Valim <jose.valim@gmail.com>2010-02-26 02:35:14 +0100
commit76237f163ff7ad2a64af926030e3449c547cafa2 (patch)
treea9d5e146463fb03dbd8930ad036c786c7dd119f1 /railties
parent1ff7e566fdd09675877753063487b0589be53aac (diff)
downloadrails-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.rb2
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