method
custom
v3.0.9 -
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.freeze_formats([mime.to_sym])
options[:body] = block_given? ? yield : @default_render.call
@responses << options
end