aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/tmail_compat.rb
diff options
context:
space:
mode:
authorMikel Lindsaar <raasdnil@gmail.com>2009-12-30 16:12:51 +1100
committerMikel Lindsaar <raasdnil@gmail.com>2009-12-30 16:12:51 +1100
commit345e622a20fd14a356a69da40e527075b1117b52 (patch)
tree19c33bbdc115a3823cf375c719db1ca741715363 /actionmailer/lib/action_mailer/tmail_compat.rb
parent79550e8995e97bd0278bfe5c05151ac94495e9b1 (diff)
downloadrails-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/tmail_compat.rb')
-rw-r--r--actionmailer/lib/action_mailer/tmail_compat.rb10
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