Remove not used variable warnings from AM and AC
This commit is contained in:
parent
d176af3250
commit
2125a6a27f
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue