instance method
[]=
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
[]=(key, value)
No documentation comment.
Parameters
-
keyreq -
valuereq
Source
# File actionmailer/lib/action_mailer/base.rb, line 479
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
Defined in actionmailer/lib/action_mailer/base.rb line 479
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Base::DeprecatedHeaderProxy