Remove not used variable warnings from AM and AC

This commit is contained in:
Carlos Antonio da Silva 2012-12-11 23:09:44 -02:00
parent d176af3250
commit 2125a6a27f
2 changed files with 2 additions and 3 deletions

View File

@ -671,9 +671,8 @@ module ActionMailer
@_mail_was_called = true
m = @_message
# At the beginning, do not consider class default for parts order neither content_type
# At the beginning, do not consider class default for content_type
content_type = headers[:content_type]
parts_order = headers[:parts_order]
# Call all the procs (if any)
class_default = self.class.default

View File

@ -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])