Parent

Files

ActionMailer::Base::DeprecatedHeaderProxy

Public Class Methods

new(message) click to toggle source
# File lib/action_mailer/base.rb, line 452
def initialize(message)
  @message = message
end

Public Instance Methods

[]=(key, value) click to toggle source
# File lib/action_mailer/base.rb, line 456
def []=(key, value)
  unless value.is_a?(::String)
    ::ActiveSupport::Deprecation.warn("Using a non-String object for a header's value is deprecated. "              "You specified #{value.inspect} (a #{value.class}) for #{key}", caller)

    value = value.to_s
  end

  @message[key] = value
end
headers(hash = {}) click to toggle source
# File lib/action_mailer/base.rb, line 467
def headers(hash = {})
  hash.each_pair do |k,v|
    self[k] = v
  end
end
method_missing(meth, *args, &block) click to toggle source
# File lib/action_mailer/base.rb, line 473
def method_missing(meth, *args, &block)
  @message.send(meth, *args, &block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.