Skip to content

Commit

Permalink
Fixed that RailsInfoController wasnt considering all requests local i…
Browse files Browse the repository at this point in the history
…n development mode (Edgard Castro) [#310 state:resolved]
  • Loading branch information
dhh committed Jun 3, 2008
1 parent 92050f6 commit 442d2f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions railties/CHANGELOG
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion railties/builtin/rails_info/rails/info_controller.rb
@@ -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
Expand Down

0 comments on commit 442d2f1

Please sign in to comment.