Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed that RailsInfoController wasnt considering all requests local i…

…n development mode (Edgard Castro) [#310 state:resolved]
  • Loading branch information...
commit 442d2f1032df6744c11f21b5ec6281c77e39c242 1 parent 92050f6
@dhh dhh authored
View
5 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]
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.