mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #8472 from schneems/schneems/expand_path
Use `File.expand_path` instead of `File.join`
This commit is contained in:
commit
05e6123653
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue