demarches-normaliennes/app/services/email_delivering_interceptor.rb

6 lines
144 B
Ruby
Raw Normal View History

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