Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added deprecation message for ARMailer subclass usage

  • Loading branch information...
commit 75056e534aad8c1104d1fd8b7b8ce36d2fa0104f 1 parent 8825b7e
@adzap adzap authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/action_mailer/ar_mailer.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.