diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2009-12-30 20:43:56 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2009-12-31 19:37:37 +1100 |
commit | a2880827b4b023a87889138aa39f1182d0265194 (patch) | |
tree | 20e5a84ccb795162d1a5179175cf604bddfe9c37 /actionmailer/lib/action_mailer/tmail_compat.rb | |
parent | 16f1a2b57350cf8764235740f23c1dbcc5e91b23 (diff) | |
download | rails-a2880827b4b023a87889138aa39f1182d0265194.tar.gz rails-a2880827b4b023a87889138aa39f1182d0265194.tar.bz2 rails-a2880827b4b023a87889138aa39f1182d0265194.zip |
Adding :transfer_encoding -> :content_transfer_encoding as part of TmailCompat
Diffstat (limited to 'actionmailer/lib/action_mailer/tmail_compat.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/tmail_compat.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/tmail_compat.rb b/actionmailer/lib/action_mailer/tmail_compat.rb index cacd79be27..0d6fc13347 100644 --- a/actionmailer/lib/action_mailer/tmail_compat.rb +++ b/actionmailer/lib/action_mailer/tmail_compat.rb @@ -6,5 +6,16 @@ module Mail content_type(*args) end + + alias :old_transfer_encoding :transfer_encoding + def transfer_encoding(value = nil) + if value + STDERR.puts("Message#transfer_encoding is deprecated, please call Message#content_transfer_encoding with the same arguments.\n#{caller}") + content_transfer_encoding(value) + else + old_transfer_encoding + end + end + end end
\ No newline at end of file |