Skip to content

Commit

Permalink
add interceptor file
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Aug 2, 2024
1 parent e494d1f commit 9a127b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/lib/email_log_interceptor.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# lib/email_log_interceptor.rb

class EmailLogInterceptor
MailDeliveryFailure.create!(
email_address: email_address,
mailer_class: mailer_class,
mailer_action_method: mailer_action_method,
error_message: error.message
)
end

0 comments on commit 9a127b8

Please sign in to comment.