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:
parent
ab0703eb59
commit
11ccdc8f17
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue