From 59bf4f09dcc9e8c51426dd142de917e95a8ca8cb Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 1 Jul 2020 02:04:27 -0700 Subject: [PATCH] Ugh, move constant --- Gemfile.lock | 1 - app/mailers/mailbot.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index f2b06ecc..0a549452 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -126,7 +126,6 @@ GEM url coderay (1.1.1) concurrent-ruby (1.1.6) - connection_pool (2.2.2) countable-rails (0.0.1) railties (>= 3.1) countries (3.0.0) diff --git a/app/mailers/mailbot.rb b/app/mailers/mailbot.rb index 7b521c8d..f93c8270 100644 --- a/app/mailers/mailbot.rb +++ b/app/mailers/mailbot.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true SNAPCON_BCC_ADDRESS = 'messages@snap.berkeley.edu' +YTLF_TICKET_ID = 50 class Mailbot < ActionMailer::Base def registration_mail(conference, user) @@ -24,7 +25,6 @@ class Mailbot < ActionMailer::Base end template_name = 'ticket_confirmation_template' - YTLF_TICKET_ID = 50 if @ticket_purchase.ticket_id = YTLF_TICKET_ID template_name = 'young_thinkers_ticket_confirmation_template' end