Permalink
Browse files

Merge pull request #8529 from schneems/schneems/debug-exceptions-exte…

…nd-path

DebugExceptions `File.join` => `File.expand_path`
  • Loading branch information...
2 parents 8832313 + 170a93d commit aefdcfdf3daab74b337035060e86f6854d80ab1e @steveklabnik steveklabnik committed Dec 16, 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 aefdcfd

Please sign in to comment.