Skip to content
Browse files

Application detection should also allow dots in the path.

  • Loading branch information...
1 parent 1ff7e56 commit 76237f163ff7ad2a64af926030e3449c547cafa2 @josevalim josevalim committed Feb 26, 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 76237f1

Please sign in to comment.
Something went wrong with that request. Please try again.