instance method
collect_responses
Ruby on Rails 5.1.7
Since v5.0.7.2 Private — implementation detail, not part of the public APISignature
collect_responses(headers)
No documentation comment.
Parameters
-
headersreq
Source
# File actionmailer/lib/action_mailer/base.rb, line 919
def collect_responses(headers)
if block_given?
collector = ActionMailer::Collector.new(lookup_context) { render(action_name) }
yield(collector)
collector.responses
elsif headers[:body]
collect_responses_from_text(headers)
else
collect_responses_from_templates(headers)
end
end
Defined in actionmailer/lib/action_mailer/base.rb line 919
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Base