method
custom
rails latest stable - Class:
ActionMailer::Collector
custom(mime, options = {})public
No documentation available.
# File actionmailer/lib/action_mailer/collector.rb, line 25
def custom(mime, options = {})
options.reverse_merge!(content_type: mime.to_s)
@context.formats = [mime.to_sym]
options[:body] = block_given? ? yield : @default_render.call
@responses << options
end