Fix missing spaces before and after equal signs in method definitions

This commit is contained in:
Robin Dupret 2013-01-03 22:14:09 +01:00
parent bb1955d5fd
commit 975493a172
2 changed files with 3 additions and 3 deletions

View File

@ -530,7 +530,7 @@ module ActionMailer
# The resulting Mail::Message will have the following in its header:
#
# X-Special-Domain-Specific-Header: SecretValue
def headers(args=nil)
def headers(args = nil)
if args
@_message.headers(args)
else
@ -660,7 +660,7 @@ module ActionMailer
# format.html
# end
#
def mail(headers={}, &block)
def mail(headers = {}, &block)
@_mail_was_called = true
m = @_message

View File

@ -20,7 +20,7 @@ module ActionMailer
end
alias :all :any
def custom(mime, options={})
def custom(mime, options = {})
options.reverse_merge!(content_type: mime.to_s)
@context.formats = [mime.to_sym]
options[:body] = block_given? ? yield : @default_render.call