demarches-normaliennes/app/services/email_delivery_observer.rb

6 lines
141 B
Ruby
Raw Normal View History

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