diff options
author | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-24 16:37:28 +0100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-24 16:37:28 +0100 |
commit | 7409b734841c8bd691006634dd072212aa905cf4 (patch) | |
tree | 2b2cc8b8836789d1e3801373a4982b80a682b54d /actionmailer/lib/action_mailer/tmail_compat.rb | |
parent | 73a9000402b5766e660dbf3489f5289c21c3f472 (diff) | |
download | rails-7409b734841c8bd691006634dd072212aa905cf4.tar.gz rails-7409b734841c8bd691006634dd072212aa905cf4.tar.bz2 rails-7409b734841c8bd691006634dd072212aa905cf4.zip |
Some refactoring.
Diffstat (limited to 'actionmailer/lib/action_mailer/tmail_compat.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/tmail_compat.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/tmail_compat.rb b/actionmailer/lib/action_mailer/tmail_compat.rb index d78332c135..c6efdc53b6 100644 --- a/actionmailer/lib/action_mailer/tmail_compat.rb +++ b/actionmailer/lib/action_mailer/tmail_compat.rb @@ -3,7 +3,7 @@ module Mail def set_content_type(*args) ActiveSupport::Deprecation.warn('Message#set_content_type is deprecated, please just call ' << - 'Message#content_type with the same arguments', caller[0,10]) + 'Message#content_type with the same arguments', caller[0,2]) content_type(*args) end @@ -11,7 +11,7 @@ module Mail def transfer_encoding(value = nil) if value ActiveSupport::Deprecation.warn('Message#transfer_encoding is deprecated, please call ' << - 'Message#content_transfer_encoding with the same arguments', caller[0,10]) + 'Message#content_transfer_encoding with the same arguments', caller[0,2]) content_transfer_encoding(value) else old_transfer_encoding @@ -20,7 +20,7 @@ module Mail def original_filename ActiveSupport::Deprecation.warn('Message#original_filename is deprecated, ' << - 'please call Message#filename', caller[0,10]) + 'please call Message#filename', caller[0,2]) filename end |