Created
September 3, 2020 04:17
-
-
Save stephaneliu/3540bb5fff22aebf0f7a40410e2e1109 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
class CreateMailer | |
def initialize(event_catalog, ccir_mailer_policy_class) | |
@event_catalog = event_catalog | |
@ccir_mailer_policy = ccir_mailer_policy_class.new(event_catalog) | |
end | |
def send | |
return false unless ccir_mailer_policy.send_email? | |
# ... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment