diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2009-12-30 16:12:51 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2009-12-30 16:12:51 +1100 |
commit | 345e622a20fd14a356a69da40e527075b1117b52 (patch) | |
tree | 19c33bbdc115a3823cf375c719db1ca741715363 /actionmailer/lib/action_mailer | |
parent | 79550e8995e97bd0278bfe5c05151ac94495e9b1 (diff) | |
download | rails-345e622a20fd14a356a69da40e527075b1117b52.tar.gz rails-345e622a20fd14a356a69da40e527075b1117b52.tar.bz2 rails-345e622a20fd14a356a69da40e527075b1117b52.zip |
Adding TMailCompat layer for :set_content_type and friends
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/tmail_compat.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/tmail_compat.rb b/actionmailer/lib/action_mailer/tmail_compat.rb new file mode 100644 index 0000000000..cacd79be27 --- /dev/null +++ b/actionmailer/lib/action_mailer/tmail_compat.rb @@ -0,0 +1,10 @@ +module Mail + class Message + + def set_content_type(*args) + STDERR.puts("Message#set_content_type is deprecated, please just call Message#content_type with the same arguments.\n#{caller}") + content_type(*args) + end + + end +end
\ No newline at end of file |