method

collect_responses

Importance_0
collect_responses(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 897
    def collect_responses(headers)
      if block_given?
        collector = ActionMailer::Collector.new(lookup_context) { render(action_name) }
        yield(collector)
        collector.responses
      elsif headers[:body]
        [{
          body: headers.delete(:body),
          content_type: self.class.default[:content_type] || "text/plain"
        }]
      else
        collect_responses_from_templates(headers)
      end
    end
Register or log in to add new notes.