Flowdock
method

collect_responses

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActionMailer::Base
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.