Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/mailers/abuse_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ class AbuseMailer < ActionMailer::Base
default_url_options[:host] = 'coderwall.com'
default_url_options[:only_path] = false

ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'

default to: -> { User.admins.pluck(:email) },
from: '"Coderwall" <support@coderwall.com>'

Expand Down
1 change: 1 addition & 0 deletions app/mailers/notifier_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class NothingToSendException < Exception
NEW_COMMENT_EVENT = 'new_comment'
NEW_APPLICANT_EVENT = 'new_applicant'
INVOICE_EVENT = 'invoice'
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'

def welcome_email(username)
headers['X-Mailgun-Variables'] = {email_type: WELCOME_EVENT}.to_json
Expand Down
1 change: 1 addition & 0 deletions app/mailers/protip_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ProtipMailer < ActionMailer::Base
protips_count: 'protips'
}
CAMPAIGN_ID = 'protip_mailer-popular_protips'
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'

#################################################################################
def popular_protips(user, protips, from, to)
Expand Down
1 change: 1 addition & 0 deletions app/mailers/subscription_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class SubscriptionMailer < ActionMailer::Base

MONTHLY_SUBSCRIPTION_PURCHASED_EVENT = 'monthly_subscription_purchased'
ONETIME_SUBSCRIPTION_PURCHASED_EVENT = 'onetime_subscription_purchased'
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'

def team_upgrade(username, plan_id)
plan = Plan.find(plan_id)
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/weekly_digest_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.queue
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%"

WEEKLY_DIGEST_EVENT = 'weekly_digest'
ACTIVITY_SUBJECT_PREFIX = "[Coderwall]"
ACTIVITY_SUBJECT_PREFIX = '[Coderwall]'

#################################################################################
def weekly_digest(username)
Expand Down