Permalink
Browse files

Remove warning of not used variable

  • Loading branch information...
1 parent 626d0b1 commit a3aca81b21f793e8869440e9e84ead80c2479e3d @carlosantoniodasilva carlosantoniodasilva committed Jan 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/redirecting.rb
@@ -77,7 +77,7 @@ def redirect_to(options = {}, response_status = {}) #:doc:
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])

0 comments on commit a3aca81

Please sign in to comment.