1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Aaron Patterson 2015-08-26 10:47:40 -07:00
parent ab0703eb59
commit 11ccdc8f17

View file

@ -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