Skip to content

Commit

Permalink
Fix missing spaces before and after equal signs in method definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
robin850 committed Jan 3, 2013
1 parent bb1955d commit 975493a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions actionmailer/lib/action_mailer/base.rb
Expand Up @@ -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
Expand Down Expand Up @@ -660,7 +660,7 @@ def attachments
# format.html
# end
#
def mail(headers={}, &block)
def mail(headers = {}, &block)
@_mail_was_called = true
m = @_message

Expand Down
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer/collector.rb
Expand Up @@ -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
Expand Down

0 comments on commit 975493a

Please sign in to comment.