mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Fixed that RailsInfoController wasnt considering all requests local in development mode (Edgard Castro) [#310 state:resolved]
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
*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]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user