Permalink
Browse files

Merge pull request #8472 from schneems/schneems/expand_path

Use `File.expand_path` instead of `File.join`
  • Loading branch information...
rafaelfranca committed Dec 10, 2012
2 parents 8110035 + e073b03 commit 05e6123653b7ceb98960403ec40788b3f34e3efd
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/info_controller.rb
@@ -1,7 +1,7 @@
require 'action_dispatch/routing/inspector'
class Rails::InfoController < ActionController::Base
- self.view_paths = File.join(File.dirname(__FILE__), 'templates')
+ self.view_paths = File.expand_path('../templates', __FILE__)
layout 'application'
before_filter :require_local!

0 comments on commit 05e6123

Please sign in to comment.