From 11ccdc8f171e8de87ef94e91a5305d73595c7dbf Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 26 Aug 2015 10:47:40 -0700 Subject: 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. --- actionpack/lib/action_controller/metal/head.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'actionpack/lib/action_controller/metal/head.rb') 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 -- cgit v1.2.3