method

apply_defaults

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionMailer::Base
apply_defaults(headers) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionmailer/lib/action_mailer/base.rb, line 901
      def apply_defaults(headers)
        default_values = self.class.default.transform_values do |value|
          compute_default(value)
        end

        headers_with_defaults = headers.reverse_merge(default_values)
        headers_with_defaults[:subject] ||= default_i18n_subject
        headers_with_defaults
      end
Register or log in to add new notes.