diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-30 16:39:27 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-30 16:39:27 +0100 |
commit | 2d567e470adb9241b400e02ccb0501efb7d09b14 (patch) | |
tree | 66b88d87186260cdc3d9585ffb9dda2e59d451b9 /actionmailer/lib/action_mailer | |
parent | 0e063f435ce31a091d1097156172d551bd9d9d37 (diff) | |
download | rails-2d567e470adb9241b400e02ccb0501efb7d09b14.tar.gz rails-2d567e470adb9241b400e02ccb0501efb7d09b14.tar.bz2 rails-2d567e470adb9241b400e02ccb0501efb7d09b14.zip |
Add transfer_encoding= setter deprecation.
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/tmail_compat.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/tmail_compat.rb b/actionmailer/lib/action_mailer/tmail_compat.rb index c6efdc53b6..26962f972f 100644 --- a/actionmailer/lib/action_mailer/tmail_compat.rb +++ b/actionmailer/lib/action_mailer/tmail_compat.rb @@ -17,7 +17,13 @@ module Mail old_transfer_encoding end end - + + def transfer_encoding=(value) + ActiveSupport::Deprecation.warn('Message#transfer_encoding= is deprecated, please call ' << + 'Message#content_transfer_encoding= with the same arguments', caller[0,2]) + self.content_transfer_encoding = value + end + def original_filename ActiveSupport::Deprecation.warn('Message#original_filename is deprecated, ' << 'please call Message#filename', caller[0,2]) |