mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Updated documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
b7889524bf
commit
af56c806bc
1 changed files with 6 additions and 1 deletions
|
@ -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
|
# * <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.
|
# 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
|
class Base
|
||||||
private_class_method :new #:nodoc:
|
private_class_method :new #:nodoc:
|
||||||
|
|
||||||
|
@ -140,7 +145,7 @@ module ActionMailer #:nodoc:
|
||||||
send("perform_delivery_#{delivery_method}", mail) if perform_deliveries
|
send("perform_delivery_#{delivery_method}", mail) if perform_deliveries
|
||||||
end
|
end
|
||||||
|
|
||||||
def quoted_printable(text, charset)
|
def quoted_printable(text, charset)#:nodoc:
|
||||||
text = text.gsub( /[^a-z ]/i ) { "=%02x" % $&[0] }.gsub( / /, "_" )
|
text = text.gsub( /[^a-z ]/i ) { "=%02x" % $&[0] }.gsub( / /, "_" )
|
||||||
"=?#{charset}?Q?#{text}?="
|
"=?#{charset}?Q?#{text}?="
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue