module Courier::Owner::InstanceMethods

Public Instance Methods

message(template_key, args={}) click to toggle source
# File lib/courier/owner.rb, line 21
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