method
custom
v3.2.13 -
Show latest stable
- Class:
ActionMailer::Collector
custom(mime, options={})public
No documentation available.
# File actionmailer/lib/action_mailer/collector.rb, line 23
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