class method
self.call
Ruby on Rails 4.2.9
Since v4.1.16Signature
self.call(email)
Returns the mail object for the given email name. The registered preview interceptors will be informed so that they can transform the message as they would if the mail was actually being delivered.
Parameters
-
emailreq
Source
# File actionmailer/lib/action_mailer/preview.rb, line 64
def call(email)
preview = self.new
message = preview.public_send(email)
inform_preview_interceptors(message)
message
end
Defined in actionmailer/lib/action_mailer/preview.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Preview