Created
August 25, 2020 09:00
-
-
Save ritikesh/dabe05f60e0fc86deaecf4220119ce22 to your computer and use it in GitHub Desktop.
blog gists
This file contains 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
class ApplicationMailer < ActionMailer::Base | |
before_action :block_spam_accounts, if: -> { Tenant.current.spam? } | |
private | |
def block_spam_accounts | |
self.response_body= "Abort!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment