instance method
custom
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
custom(mime, options={})
No documentation comment.
Parameters
-
mimereq -
optionsopt = {}
Source
# 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
Defined in actionmailer/lib/action_mailer/collector.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Collector