Class: ActionMailer::Preview

Inherits:
Object
  • Object
show all
Defined in:
lib/mailer_preview_request_model.rb

Class Method Summary collapse

Class Method Details

.call(email, request_model) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/mailer_preview_request_model.rb', line 57

def call(email, request_model)
  preview = self.new
  preview.request_model = request_model
  message = preview.public_send(email)
  inform_preview_interceptors(message)
  message
end