mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove not used variable warnings from AM and AC
This commit is contained in:
parent
d176af3250
commit
2125a6a27f
2 changed files with 2 additions and 3 deletions
|
@ -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 a new issue