Permalink
Browse files

added deprecation message for ARMailer subclass usage

  • Loading branch information...
1 parent 8825b7e commit 75056e534aad8c1104d1fd8b7b8ce36d2fa0104f @adzap adzap committed Feb 1, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/action_mailer/ar_mailer.rb
@@ -5,6 +5,14 @@
# ActionMailer.
#
+class ActionMailer::ARMailer < ActionMailer::Base
+
+ def self.inherited(sub)
+ logger.warn('The ActionMailer::ARMailer class has been deprecated. Will be removed in version 2.1. Just use ActionMailer::Base.')
+ end
+
+end
+
class ActionMailer::Base
@@email_class = Email

0 comments on commit 75056e5

Please sign in to comment.