Skip to content

Commit

Permalink
Merge pull request #9245 from CitizenLabDotCo/TAN-2894-allow-all-auto…
Browse files Browse the repository at this point in the history
…mated-emails-to-be-turned-off

TAN-2894 - Allow ALL automated emails to be disabled
  • Loading branch information
jamesspeake authored Oct 31, 2024
2 parents 96d81d8 + f6b3bc7 commit 306cf13
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module EmailCampaigns
module Disableable
extend ActiveSupport::Concern

# NOTE: This concern is now applied to all campaigns
# but is left here so that future campaigns have the ability to not be disabled

# If one instance is enabled, we consider the campaign_type enabled. This
# returns all campaign_types that are not all disabled
def self.enabled_campaign_types(instances)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module EmailCampaigns
class Campaigns::CommentOnIdeaYouFollow < Campaign
include Consentable
include Disableable
include ActivityTriggerable
include RecipientConfigurable
include LifecycleStageRestrictable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module EmailCampaigns
class Campaigns::CommentOnInitiativeYouFollow < Campaign
include Consentable
include Disableable
include ActivityTriggerable
include RecipientConfigurable
include LifecycleStageRestrictable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module EmailCampaigns
class Campaigns::OfficialFeedbackOnIdeaYouFollow < Campaign
include Consentable
include Disableable
include ActivityTriggerable
include RecipientConfigurable
include Trackable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module EmailCampaigns
class Campaigns::OfficialFeedbackOnInitiativeYouFollow < Campaign
include Consentable
include Disableable
include ActivityTriggerable
include RecipientConfigurable
include Trackable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module EmailCampaigns
class Campaigns::ProjectPublished < Campaign
include Consentable
include Disableable
include ActivityTriggerable
include RecipientConfigurable
include Trackable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module EmailCampaigns
class Campaigns::StatusChangeOnIdeaYouFollow < Campaign
include Consentable
include Disableable
include ActivityTriggerable
include RecipientConfigurable
include Trackable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module EmailCampaigns
class Campaigns::StatusChangeOnInitiativeYouFollow < Campaign
include Consentable
include Disableable
include ActivityTriggerable
include RecipientConfigurable
include Trackable
Expand Down

0 comments on commit 306cf13

Please sign in to comment.