instance method
collect_responses_from_templates
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
collect_responses_from_templates(headers)
No documentation comment.
Parameters
-
headersreq
Source
# File actionmailer/lib/action_mailer/base.rb, line 936
def collect_responses_from_templates(headers)
templates_path = headers[:template_path] || self.class.mailer_name
templates_name = headers[:template_name] || action_name
each_template(Array(templates_path), templates_name).map do |template|
self.formats = template.formats
{
body: render(template: template),
content_type: template.type.to_s
}
end
end
Defined in actionmailer/lib/action_mailer/base.rb line 936
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Base