Skip to content

Commit

Permalink
Application detection should also allow dots in the path.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 26, 2010
1 parent 1ff7e56 commit 76237f1
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
# 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

Expand Down

0 comments on commit 76237f1

Please sign in to comment.