diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index a66e81f1c35ce30cb724eb4df818eae5ac27793d..6a9828fde70073b6283f656a7895e0619148a771 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -70,7 +70,7 @@ module ActionMailer # The block syntax is also useful in providing information specific to a part: # # mail(to: user.email) do |format| - # format.text(:content_transfer_encoding => "base64") + # format.text(content_transfer_encoding: "base64") # format.html # end # @@ -129,12 +129,12 @@ module ActionMailer # It is also possible to set a default host that will be used in all mailers by setting the :host # option as a configuration option in config/application.rb: # - # config.action_mailer.default_url_options = { :host => "example.com" } + # config.action_mailer.default_url_options = { host: "example.com" } # # When you decide to set a default :host for your mailers, then you need to make sure to use the - # :only_path => false option when using url_for. Since the url_for view helper + # only_path: false option when using url_for. Since the url_for view helper # will generate relative URLs by default when a :host option isn't explicitly provided, passing - # :only_path => false will ensure that absolute URLs are generated. + # only_path: false will ensure that absolute URLs are generated. # # = Sending mail # @@ -246,10 +246,10 @@ module ActionMailer # You can pass in any header value that a Mail::Message accepts. Out of the box, # ActionMailer::Base sets the following: # - # * :mime_version => "1.0" - # * :charset => "UTF-8", - # * :content_type => "text/plain", - # * :parts_order => [ "text/plain", "text/enriched", "text/html" ] + # * mime_version: "1.0" + # * charset: "UTF-8", + # * content_type: "text/plain", + # * parts_order: [ "text/plain", "text/enriched", "text/html" ] # # parts_order and charset are not actually valid Mail::Message header fields, # but Action Mailer translates them appropriately and sets the correct values. @@ -665,7 +665,7 @@ def attachments # # The block syntax also allows you to customize the part headers if desired: # - # mail(:to => 'mikel@test.lindsaar.net') do |format| + # mail(to: 'mikel@test.lindsaar.net') do |format| # format.text(content_transfer_encoding: "base64") # format.html # end