Sha256: a9991eb894d4073f7924061f56ced41218b16c883257f92868b63bbc4f13ff48

Contents?: true

Size: 1.2 KB

Versions: 30

Compression:

Stored size: 1.2 KB

Contents

module Mail
  class Message

    def set_content_type(*args)
      message = 'Message#set_content_type is deprecated, please just call ' <<
                'Message#content_type with the same arguments'
      ActiveSupport::Deprecation.warn(message, caller[0,2])
      content_type(*args)
    end

    alias :old_transfer_encoding :transfer_encoding
    def transfer_encoding(value = nil)
      if value
        message = 'Message#transfer_encoding is deprecated, ' <<
                  'please call Message#content_transfer_encoding with the same arguments'
        ActiveSupport::Deprecation.warn(message, caller[0,2])
        content_transfer_encoding(value)
      else
        old_transfer_encoding
      end
    end

    def transfer_encoding=(value)
      message = 'Message#transfer_encoding= is deprecated, ' <<
                'please call Message#content_transfer_encoding= with the same arguments'
      ActiveSupport::Deprecation.warn(message, caller[0,2])
      self.content_transfer_encoding = value
    end

    def original_filename
      message = 'Message#original_filename is deprecated, please call Message#filename'
      ActiveSupport::Deprecation.warn(message, caller[0,2])
      filename
    end

  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
legacy_mailers-0.1.1 lib/action_mailer/tmail_compat.rb
legacy_mailers-0.1.0 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.12 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.11 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.10 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.9 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.8 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.7 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.6 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.5 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.5.rc1 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.4 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.4.rc1 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.3 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.2 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.2.rc2 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.2.rc1 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.1 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.1.rc3 lib/action_mailer/tmail_compat.rb
actionmailer-3.1.1.rc2 lib/action_mailer/tmail_compat.rb