diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-11 23:09:44 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-11 23:57:56 -0200 |
commit | 2125a6a27fabad69c593934d6f04d20cd8fb9c15 (patch) | |
tree | b5ca189f5d90098d1ef4a6c2a2a7e0aaa63274d2 /actionpack | |
parent | d176af3250ef1d73d5ce3e7aa23dfe9d1dc4e40f (diff) | |
download | rails-2125a6a27fabad69c593934d6f04d20cd8fb9c15.tar.gz rails-2125a6a27fabad69c593934d6f04d20cd8fb9c15.tar.bz2 rails-2125a6a27fabad69c593934d6f04d20cd8fb9c15.zip |
Remove not used variable warnings from AM and AC
Diffstat (limited to 'actionpack')
-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 b23938e7d9..4250ea9f71 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -74,7 +74,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]) |