2009-12-30 00:12:51 -05:00
|
|
|
module Mail
|
|
|
|
class Message
|
|
|
|
|
|
|
|
def set_content_type(*args)
|
2010-01-21 20:49:13 -05:00
|
|
|
ActiveSupport::Deprecation.warn('Message#set_content_type is deprecated, please just call ' <<
|
2010-01-22 05:01:21 -05:00
|
|
|
'Message#content_type with the same arguments', caller[0,10])
|
2009-12-30 00:12:51 -05:00
|
|
|
content_type(*args)
|
|
|
|
end
|
|
|
|
|
2009-12-30 04:43:56 -05:00
|
|
|
alias :old_transfer_encoding :transfer_encoding
|
|
|
|
def transfer_encoding(value = nil)
|
|
|
|
if value
|
2010-01-21 20:49:13 -05:00
|
|
|
ActiveSupport::Deprecation.warn('Message#transfer_encoding is deprecated, please call ' <<
|
2010-01-22 05:01:21 -05:00
|
|
|
'Message#content_transfer_encoding with the same arguments', caller[0,10])
|
2009-12-30 04:43:56 -05:00
|
|
|
content_transfer_encoding(value)
|
|
|
|
else
|
|
|
|
old_transfer_encoding
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-01-21 04:03:55 -05:00
|
|
|
def original_filename
|
2010-01-21 20:49:13 -05:00
|
|
|
ActiveSupport::Deprecation.warn('Message#original_filename is deprecated, ' <<
|
2010-01-22 05:01:21 -05:00
|
|
|
'please call Message#filename', caller[0,10])
|
2010-01-21 04:03:55 -05:00
|
|
|
filename
|
|
|
|
end
|
|
|
|
|
2009-12-30 00:12:51 -05:00
|
|
|
end
|
|
|
|
end
|