Created
August 25, 2020 08:59
-
-
Save ritikesh/81d92119d74fe069726b44f69e863012 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 | |
message.perform_deliveries = false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment