demarches-normaliennes/app/services/email_delivery_observer.rb
2024-08-22 09:26:48 +02:00

7 lines
172 B
Ruby

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