class method
self.call
Ruby on Rails 7.1.6
Since v4.1.16Signature
self.call(email, params = {})
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 -
paramsopt = {}
Source
# File actionmailer/lib/action_mailer/preview.rb, line 112
def call(email, params = {})
preview = new(params)
message = preview.public_send(email)
inform_preview_interceptors(message)
message
end
Defined in actionmailer/lib/action_mailer/preview.rb line 112
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Preview