Class: Cerberus::Publisher::Mail
- Defined in:
- lib/cerberus/publisher/mail.rb
Defined Under Namespace
Classes: ActionMailerPublisher
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.publish(state, manager, options) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cerberus/publisher/mail.rb', line 12 def self.publish(state, manager, ) mail_opts = [:publisher, :mail].dup raise "There is no recipients provided for mail publisher" unless mail_opts[:recipients] configure(mail_opts) ActionMailerPublisher.(state, manager, ) end |