Class: Cerberus::Publisher::Mail

Inherits:
Base
  • Object
show all
Defined in:
lib/cerberus/publisher/mail.rb

Defined Under Namespace

Classes: ActionMailerPublisher

Class Method Summary collapse

Methods inherited from Base

formatted_message

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, options)
  mail_opts = options[:publisher, :mail].dup
  raise "There is no recipients provided for mail publisher" unless mail_opts[:recipients]

  configure(mail_opts)
  ActionMailerPublisher.deliver_message(state, manager, options)
end