提交 05e61236 编写于 作者: R Rafael Mendonça França

Merge pull request #8472 from schneems/schneems/expand_path

Use `File.expand_path` instead of `File.join`
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!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册