aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-24 01:48:29 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-24 01:48:29 +0000
commitaf56c806bcf915f8125302001bf91bd20268966a (patch)
tree4db216efcb5ef607b73c3aeedcb420da5430a716 /actionmailer
parentb7889524bfe861e38aa7f384ed116f2b15068fe1 (diff)
downloadrails-af56c806bcf915f8125302001bf91bd20268966a.tar.gz
rails-af56c806bcf915f8125302001bf91bd20268966a.tar.bz2
rails-af56c806bcf915f8125302001bf91bd20268966a.zip
Updated documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/base.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 67141c461b..ab17874fd8 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -55,6 +55,11 @@ module ActionMailer #:nodoc:
#
# * <tt>deliveries</tt> - Keeps an array of all the emails sent out through the Action Mailer with delivery_method :test. Most useful
# for unit and functional testing.
+ #
+ # * <tt>default_charset</tt> - The default charset used for the body and to encode the subject. Defaults to UTF-8. You can also
+ # pick a different charset from inside a method with <tt>@encoding</tt>.
+ #
+ # * <tt>encode_subject</tt> - Whether or not to encode the subject with the active charset. Defaults to true.
class Base
private_class_method :new #:nodoc:
@@ -140,7 +145,7 @@ module ActionMailer #:nodoc:
send("perform_delivery_#{delivery_method}", mail) if perform_deliveries
end
- def quoted_printable(text, charset)
+ def quoted_printable(text, charset)#:nodoc:
text = text.gsub( /[^a-z ]/i ) { "=%02x" % $&[0] }.gsub( / /, "_" )
"=?#{charset}?Q?#{text}?="
end