aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-26 10:47:40 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-26 10:51:14 -0700
commit11ccdc8f171e8de87ef94e91a5305d73595c7dbf (patch)
tree54943ad94f50addd344579d90ad53910f0218171
parentab0703eb59d42e2572a9cffbda5a63d5780f6ed4 (diff)
downloadrails-11ccdc8f171e8de87ef94e91a5305d73595c7dbf.tar.gz
rails-11ccdc8f171e8de87ef94e91a5305d73595c7dbf.tar.bz2
rails-11ccdc8f171e8de87ef94e91a5305d73595c7dbf.zip
remove useless status set
Now that `Controller#status=` just delegates to the response object, we don't need to set the response on the controller and the response. We can just set it in one place.
-rw-r--r--actionpack/lib/action_controller/metal/head.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/head.rb b/actionpack/lib/action_controller/metal/head.rb
index 74c1f314b1..b2110bf946 100644
--- a/actionpack/lib/action_controller/metal/head.rb
+++ b/actionpack/lib/action_controller/metal/head.rb
@@ -36,8 +36,6 @@ module ActionController
headers[key.to_s.dasherize.split('-').each { |v| v[0] = v[0].chr.upcase }.join('-')] = value.to_s
end
- response.status = Rack::Utils.status_code(status)
-
self.status = status
self.location = url_for(location) if location