Permalink
Browse files

Fixed that RailsInfoController wasnt considering all requests local i…

…n development mode (Edgard Castro) [#310 state:resolved]
  • Loading branch information...
1 parent 92050f6 commit 442d2f1032df6744c11f21b5ec6281c77e39c242 @dhh dhh committed Jun 3, 2008
Showing with 6 additions and 1 deletion.
  1. +5 −0 railties/CHANGELOG
  2. +1 −1 railties/builtin/rails_info/rails/info_controller.rb
View
@@ -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

0 comments on commit 442d2f1

Please sign in to comment.