diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-26 10:26:21 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-26 10:51:13 -0700 |
commit | 44454bdd8b08ca7f19f3974e6c7eb7f0fcbca590 (patch) | |
tree | 5f8b680f6a44ddb04fd11039f173fa74bcf15509 | |
parent | 09173b5a616c0d682955c89bb005b3e78ca962a4 (diff) | |
download | rails-44454bdd8b08ca7f19f3974e6c7eb7f0fcbca590.tar.gz rails-44454bdd8b08ca7f19f3974e6c7eb7f0fcbca590.tar.bz2 rails-44454bdd8b08ca7f19f3974e6c7eb7f0fcbca590.zip |
remove useless conditional
controller instances always have a response object, so we don't need to
test to see if there is one, just always call to_a on the response.
-rw-r--r-- | actionpack/lib/action_controller/metal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index 129e0bbd3c..4392bc8266 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -230,7 +230,7 @@ module ActionController end def to_a #:nodoc: - response ? response.to_a : [status, headers, response_body] + response.to_a end class_attribute :middleware_stack |