Module: Courier::Owner::InstanceMethods

Defined in:
lib/courier/owner.rb

Instance Method Summary collapse

Instance Method Details

#message(template_key, args = {}) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/courier/owner.rb', line 22

def message(template_key, args={})
  template = Courier.template(template_key)
  Courier.config.services_order.select do |service|
    create_courier unless courier
    courier.on?(template, service, args) and service.message(self, template, args)
  end
end