demarches-normaliennes/app/services/email_delivering_interceptor.rb

8 lines
175 B
Ruby
Raw Normal View History

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