Skip to content

Commit 6141395

Browse files
committed
Restore subject prefix
1 parent 1860d93 commit 6141395

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

app/mailers/abuse_mailer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ class AbuseMailer < ActionMailer::Base
22
default_url_options[:host] = 'coderwall.com'
33
default_url_options[:only_path] = false
44

5+
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'
6+
57
default to: -> { User.admins.pluck(:email) },
68
from: '"Coderwall" <support@coderwall.com>'
79

app/mailers/notifier_mailer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class NothingToSendException < Exception
2525
NEW_COMMENT_EVENT = 'new_comment'
2626
NEW_APPLICANT_EVENT = 'new_applicant'
2727
INVOICE_EVENT = 'invoice'
28+
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'
2829

2930
def welcome_email(username)
3031
headers['X-Mailgun-Variables'] = {email_type: WELCOME_EVENT}.to_json

app/mailers/protip_mailer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ProtipMailer < ActionMailer::Base
1717
protips_count: 'protips'
1818
}
1919
CAMPAIGN_ID = 'protip_mailer-popular_protips'
20+
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'
2021

2122
#################################################################################
2223
def popular_protips(user, protips, from, to)

app/mailers/subscription_mailer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class SubscriptionMailer < ActionMailer::Base
1212

1313
MONTHLY_SUBSCRIPTION_PURCHASED_EVENT = 'monthly_subscription_purchased'
1414
ONETIME_SUBSCRIPTION_PURCHASED_EVENT = 'onetime_subscription_purchased'
15+
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'
1516

1617
def team_upgrade(username, plan_id)
1718
plan = Plan.find(plan_id)

app/mailers/weekly_digest_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def self.queue
1919
SPAM_NOTICE = "You're receiving this email because you signed up for Coderwall. We hate spam and make an effort to keep notifications to a minimum. To change your notification preferences, you can update your email settings here: http://coderwall.com/settings#email or immediately unsubscribe by clicking this link %unsubscribe_url%"
2020

2121
WEEKLY_DIGEST_EVENT = 'weekly_digest'
22-
ACTIVITY_SUBJECT_PREFIX = "[Coderwall]"
22+
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'
2323

2424
#################################################################################
2525
def weekly_digest(username)

0 commit comments

Comments
 (0)