提交 2125a6a2 编写于 作者: C Carlos Antonio da Silva

Remove not used variable warnings from AM and AC

上级 d176af32
......@@ -671,9 +671,8 @@ def mail(headers={}, &block)
@_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 @@ 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])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册