demarches-normaliennes/app/services/email_delivery_observer.rb

5 lines
141 B
Ruby

class EmailDeliveryObserver
def self.delivered_email(message)
EmailEvent.create_from_message!(message, status: "dispatched")
end
end