Permalink
Browse files

Merge pull request #8730 from robin850/master

Fix missing spaces in method definitions
  • Loading branch information...
2 parents fdd6271 + 975493a commit 05fb650d3179106e9de466a1575a74dec53db6b2 @rafaelfranca rafaelfranca committed Jan 3, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 actionmailer/lib/action_mailer/base.rb
  2. +1 −1 actionmailer/lib/action_mailer/collector.rb
View
4 actionmailer/lib/action_mailer/base.rb
@@ -530,7 +530,7 @@ def mailer_name
# 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 @@ def attachments
# format.html
# end
#
- def mail(headers={}, &block)
+ def mail(headers = {}, &block)
@_mail_was_called = true
m = @_message
View
2 actionmailer/lib/action_mailer/collector.rb
@@ -20,7 +20,7 @@ def any(*args, &block)
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

0 comments on commit 05fb650

Please sign in to comment.