提交 05fb650d 编写于 作者: R Rafael Mendonça França

Merge pull request #8730 from robin850/master

Fix missing spaces in method definitions
...@@ -530,7 +530,7 @@ def mailer_name ...@@ -530,7 +530,7 @@ def mailer_name
# The resulting Mail::Message will have the following in its header: # The resulting Mail::Message will have the following in its header:
# #
# X-Special-Domain-Specific-Header: SecretValue # X-Special-Domain-Specific-Header: SecretValue
def headers(args=nil) def headers(args = nil)
if args if args
@_message.headers(args) @_message.headers(args)
else else
...@@ -660,7 +660,7 @@ def attachments ...@@ -660,7 +660,7 @@ def attachments
# format.html # format.html
# end # end
# #
def mail(headers={}, &block) def mail(headers = {}, &block)
@_mail_was_called = true @_mail_was_called = true
m = @_message m = @_message
......
...@@ -20,7 +20,7 @@ def any(*args, &block) ...@@ -20,7 +20,7 @@ def any(*args, &block)
end end
alias :all :any alias :all :any
def custom(mime, options={}) def custom(mime, options = {})
options.reverse_merge!(content_type: mime.to_s) options.reverse_merge!(content_type: mime.to_s)
@context.formats = [mime.to_sym] @context.formats = [mime.to_sym]
options[:body] = block_given? ? yield : @default_render.call options[:body] = block_given? ? yield : @default_render.call
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册