diff options
author | José Valim and Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-22 12:49:13 +1100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-22 12:49:13 +1100 |
commit | 77986f6bdb18414d730fa1ec686365dff26bb4fe (patch) | |
tree | 0d7c4e147cbe2740c9a33aa29ebc03380cacc1d7 /actionmailer/lib/action_mailer | |
parent | 12c001fec449864db64eca9ba3a477a7da30b2ba (diff) | |
download | rails-77986f6bdb18414d730fa1ec686365dff26bb4fe.tar.gz rails-77986f6bdb18414d730fa1ec686365dff26bb4fe.tar.bz2 rails-77986f6bdb18414d730fa1ec686365dff26bb4fe.zip |
Added use of AS::Notifications for tmail_compat.rb
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/tmail_compat.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/tmail_compat.rb b/actionmailer/lib/action_mailer/tmail_compat.rb index 94f21c7cf3..da13aac677 100644 --- a/actionmailer/lib/action_mailer/tmail_compat.rb +++ b/actionmailer/lib/action_mailer/tmail_compat.rb @@ -2,14 +2,16 @@ 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}") + ActiveSupport::Deprecation.warn('Message#set_content_type is deprecated, please just call ' << + 'Message#content_type with the same arguments.', caller[0,10]) 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}") + ActiveSupport::Deprecation.warn('Message#transfer_encoding is deprecated, please call ' << + 'Message#content_transfer_encoding with the same arguments.', caller[0,10]) content_transfer_encoding(value) else old_transfer_encoding @@ -17,7 +19,8 @@ module Mail end def original_filename - STDERR.puts("Message#original_filename is deprecated, please call Message#filename.\n#{caller}") + ActiveSupport::Deprecation.warn('Message#original_filename is deprecated, ' << + 'please call Message#filename.', caller[0,10]) filename end |