diff options
author | José Valim <jose.valim@gmail.com> | 2009-12-25 21:35:40 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-12-25 21:35:40 +0100 |
commit | ee70d1b6ad9b79d2c3d284e78af4e20416575ea8 (patch) | |
tree | 41b15c70dd3611417d4081725fdf738c530bd36b /actionmailer/lib/action_mailer/part.rb | |
parent | 135d32c8bd91608c12a394ca5dbd65f358bbce42 (diff) | |
download | rails-ee70d1b6ad9b79d2c3d284e78af4e20416575ea8.tar.gz rails-ee70d1b6ad9b79d2c3d284e78af4e20416575ea8.tar.bz2 rails-ee70d1b6ad9b79d2c3d284e78af4e20416575ea8.zip |
adv_attr_accessors in ActionMailer are not sent to the views, use the mailer object if you need to access the subject, recipients, from, etc.
Diffstat (limited to 'actionmailer/lib/action_mailer/part.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/part.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/part.rb b/actionmailer/lib/action_mailer/part.rb index 2bbb59cdb6..9ff962c39a 100644 --- a/actionmailer/lib/action_mailer/part.rb +++ b/actionmailer/lib/action_mailer/part.rb @@ -4,7 +4,8 @@ module ActionMailer # and add them to the +parts+ list of the mailer, it is easier # to use the helper methods in ActionMailer::PartContainer. class Part - include AdvAttrAccessor, PartContainer, Utils + include PartContainer, Utils + extend AdvAttrAccessor # 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 |