diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-17 10:28:16 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-17 10:28:16 -0200 |
commit | a3aca81b21f793e8869440e9e84ead80c2479e3d (patch) | |
tree | fa171ebac3e48d9181e62074039465ac1f9976ed /actionpack/lib/action_controller/metal | |
parent | 626d0b157f5ccf8a42401e6a111432912331aa47 (diff) | |
download | rails-a3aca81b21f793e8869440e9e84ead80c2479e3d.tar.gz rails-a3aca81b21f793e8869440e9e84ead80c2479e3d.tar.bz2 rails-a3aca81b21f793e8869440e9e84ead80c2479e3d.zip |
Remove warning of not used variable
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/redirecting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index 9abb86caf8..7630ee2926 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -77,7 +77,7 @@ module ActionController private def _extract_redirect_to_status(options, response_status) - status = if options.is_a?(Hash) && options.key?(:status) + if options.is_a?(Hash) && options.key?(:status) Rack::Utils.status_code(options.delete(:status)) elsif response_status.key?(:status) Rack::Utils.status_code(response_status[:status]) |