Fixed that RailsInfoController wasnt considering all requests local in...

Fixed that RailsInfoController wasnt considering all requests local in development mode (Edgard Castro) [#310 state:resolved]
上级 92050f6c
*Edge*
* Fixed that RailsInfoController wasn't considering all requests local in development mode (Edgard Castro) [#310 state:resolved]
*2.1.0 (May 31st, 2008)*
* script/dbconsole fires up the command-line database client. #102 [Steve Purcell]
......
class Rails::InfoController < ActionController::Base
def properties
if local_request?
if consider_all_requests_local || local_request?
render :inline => Rails::Info.to_html
else
render :text => '<p>For security purposes, this information is only available to local requests.</p>', :status => 500
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册