Skip to content

Instantly share code, notes, and snippets.

@ritikesh
Created August 25, 2020 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritikesh/dabe05f60e0fc86deaecf4220119ce22 to your computer and use it in GitHub Desktop.
Save ritikesh/dabe05f60e0fc86deaecf4220119ce22 to your computer and use it in GitHub Desktop.
blog gists
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