diff options
author | robertomiranda <rjmaltamar@gmail.com> | 2014-02-18 15:04:16 -0500 |
---|---|---|
committer | robertomiranda <rjmaltamar@gmail.com> | 2014-02-18 15:05:10 -0500 |
commit | e220a34e396f026bbee8c7492aaa0ca515995a05 (patch) | |
tree | 30ae3a7b4e7759f646d009046f7b0325c227c6d5 /actionmailer/lib | |
parent | 5dc6bf5fbcb70b330edff8da257607acd1760805 (diff) | |
download | rails-e220a34e396f026bbee8c7492aaa0ca515995a05.tar.gz rails-e220a34e396f026bbee8c7492aaa0ca515995a05.tar.bz2 rails-e220a34e396f026bbee8c7492aaa0ca515995a05.zip |
Update Docs in favor to use render plain instead of text option
ref #14062
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index eb8cca9ee4..a522dd3164 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -724,11 +724,11 @@ module ActionMailer # format.html # end # - # You can even render text directly without using a template: + # You can even render plain directly without using a template: # # mail(to: 'mikel@test.lindsaar.net') do |format| - # format.text { render text: "Hello Mikel!" } - # format.html { render text: "<h1>Hello Mikel!</h1>" } + # format.text { render plain: "Hello Mikel!" } + # format.html { render plain: "<h1>Hello Mikel!</h1>" } # end # # Which will render a +multipart/alternative+ email with +text/plain+ and |