Permalink
Browse files

DebugExceptions `File.join` => `File.expand_path`

  • Loading branch information...
1 parent 0c692f4 commit 170a93d25c24c7a46b98e6539d8be4f4d4fc9a32 @schneems schneems committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -7,7 +7,7 @@ module ActionDispatch
# This middleware is responsible for logging exceptions and
# showing a debugging page in case the request is local.
class DebugExceptions
- RESCUES_TEMPLATE_PATH = File.join(File.dirname(__FILE__), 'templates')
+ RESCUES_TEMPLATE_PATH = File.expand_path('../templates', __FILE__)
def initialize(app, routes_app = nil)
@app = app

0 comments on commit 170a93d

Please sign in to comment.