Fixed that RailsInfoController wasnt considering all requests local in development mode (Edgard Castro) [#310 state:resolved]

This commit is contained in:
David Heinemeier Hansson
2008-06-02 21:55:42 -05:00
parent 92050f6c6f
commit 442d2f1032
2 changed files with 6 additions and 1 deletions

View File

@@ -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]

View File

@@ -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