Class: Mail::Message
- Defined in:
- actionmailer/lib/action_mailer/tmail_compat.rb
Instance Method Summary collapse
- #old_transfer_encoding ⇒ Object
- #original_filename ⇒ Object
- #set_content_type(*args) ⇒ Object
- #transfer_encoding(value = nil) ⇒ Object
- #transfer_encoding=(value) ⇒ Object
Instance Method Details
#old_transfer_encoding ⇒ Object
11 |
# File 'actionmailer/lib/action_mailer/tmail_compat.rb', line 11 alias :old_transfer_encoding :transfer_encoding |
#original_filename ⇒ Object
30 31 32 33 34 |
# File 'actionmailer/lib/action_mailer/tmail_compat.rb', line 30 def original_filename = 'Message#original_filename is deprecated, please call Message#filename' ActiveSupport::Deprecation.warn(, caller[0,2]) filename end |
#set_content_type(*args) ⇒ Object
4 5 6 7 8 9 |
# File 'actionmailer/lib/action_mailer/tmail_compat.rb', line 4 def set_content_type(*args) = 'Message#set_content_type is deprecated, please just call ' << 'Message#content_type with the same arguments' ActiveSupport::Deprecation.warn(, caller[0,2]) content_type(*args) end |
#transfer_encoding(value = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'actionmailer/lib/action_mailer/tmail_compat.rb', line 12 def transfer_encoding(value = nil) if value = 'Message#transfer_encoding is deprecated, ' << 'please call Message#content_transfer_encoding with the same arguments' ActiveSupport::Deprecation.warn(, caller[0,2]) content_transfer_encoding(value) else old_transfer_encoding end end |
#transfer_encoding=(value) ⇒ Object
23 24 25 26 27 28 |
# File 'actionmailer/lib/action_mailer/tmail_compat.rb', line 23 def transfer_encoding=(value) = 'Message#transfer_encoding= is deprecated, ' << 'please call Message#content_transfer_encoding= with the same arguments' ActiveSupport::Deprecation.warn(, caller[0,2]) self.content_transfer_encoding = value end |