diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-11-23 12:27:25 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-11-23 12:27:25 -0600 |
commit | e201fc750bf4b7dff1875b7fcdd47f1686ef2052 (patch) | |
tree | ced60e6ae52de148c8c0a7673dc65a73b03d1c4f /actionmailer/lib/action_mailer/part.rb | |
parent | 04d2d043ca9c59ab93522f1d8c0810cf47f05b23 (diff) | |
download | rails-e201fc750bf4b7dff1875b7fcdd47f1686ef2052.tar.gz rails-e201fc750bf4b7dff1875b7fcdd47f1686ef2052.tar.bz2 rails-e201fc750bf4b7dff1875b7fcdd47f1686ef2052.zip |
use autoload instead of explicit requires for ActionMailer
Diffstat (limited to 'actionmailer/lib/action_mailer/part.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/part.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/actionmailer/lib/action_mailer/part.rb b/actionmailer/lib/action_mailer/part.rb index 2dabf15f08..977c0b2b5c 100644 --- a/actionmailer/lib/action_mailer/part.rb +++ b/actionmailer/lib/action_mailer/part.rb @@ -1,15 +1,10 @@ -require 'action_mailer/adv_attr_accessor' -require 'action_mailer/part_container' -require 'action_mailer/utils' - module ActionMailer # Represents a subpart of an email message. It shares many similar # attributes of ActionMailer::Base. Although you can create parts manually # and add them to the +parts+ list of the mailer, it is easier # to use the helper methods in ActionMailer::PartContainer. class Part - include ActionMailer::AdvAttrAccessor - include ActionMailer::PartContainer + include AdvAttrAccessor, PartContainer, Utils # Represents the body of the part, as a string. This should not be a # Hash (like ActionMailer::Base), but if you want a template to be rendered @@ -64,7 +59,7 @@ module ActionMailer when "base64" then part.body = TMail::Base64.folding_encode(body) when "quoted-printable" - part.body = [Utils.normalize_new_lines(body)].pack("M*") + part.body = [normalize_new_lines(body)].pack("M*") else part.body = body end @@ -102,7 +97,6 @@ module ActionMailer end private - def squish(values={}) values.delete_if { |k,v| v.nil? } end |