diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-14 08:04:49 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-14 08:04:49 +0000 |
commit | bca13f727eb7410857059bab38dc58f81dbde321 (patch) | |
tree | e9f40cf11e360178a7ff519eecd0709d10f2ec7a | |
parent | 1d9905a67f9bf00867883d3a954df3d4df90eaba (diff) | |
download | rails-bca13f727eb7410857059bab38dc58f81dbde321.tar.gz rails-bca13f727eb7410857059bab38dc58f81dbde321.tar.bz2 rails-bca13f727eb7410857059bab38dc58f81dbde321.zip |
Changed test requests to come from 0.0.0.0 instead of 127.0.0.1 such that they don't trigger debugging screens on exceptions, but instead call rescue_action_in_public
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 1 | ||||
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 910ee8dd5b..4a935de5d6 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -239,7 +239,6 @@ module ActionMailer #:nodoc: end private - def render_message(method_name, body) ActionView::Base.new(template_path, body).render_file(method_name) end diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index e1a62c8713..bea218be68 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Changed test requests to come from 0.0.0.0 instead of 127.0.0.1 such that they don't trigger debugging screens on exceptions, but instead call rescue_action_in_public + * Modernize scaffolding to match the generator: use the new render method and change style from the warty @params["id"] to the sleek params[:id]. #1367 * Include :id in the action generated by the form helper method. Then, for example, the controller can do Model.find(params[:id]) for both edit and update actions. Updated scaffolding to take advantage. #1367 diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 20022aab91..1872cacd10 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -92,7 +92,7 @@ module ActionController #:nodoc: def initialize_default_values @host = "test.host" @request_uri = "/" - self.remote_addr = "127.0.0.1" + self.remote_addr = "0.0.0.0" @env["SERVER_PORT"] = 80 end end |