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

7 lines
175 B
Ruby

# frozen_string_literal: true
class EmailDeliveringInterceptor
def self.delivering_email(message)
EmailEvent.create_from_message!(message, status: "pending")
end
end