Last active
May 22, 2024 10:37
-
-
Save mhanberg/7bca95849839cf03fa2404333b5b62d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Interceptors | |
class StagingServerEmailInterceptor | |
def self.delivering_email(email) | |
email.to = "[email protected]" | |
email.subject = "(TEST) " + email.subject | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Rails.env.staging? | |
ActionMailer::Base.register_interceptors(Interceptors::StagingServerEmailInterceptor) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment