demarches-normaliennes/app/services/email_delivery_observer.rb

7 lines
172 B
Ruby

class EmailDeliveryObserver
def self.delivered_email(message)
return if message.to.nil?
EmailEvent.create_from_message!(message, status: "dispatched")
end
end