refactored thanks page

This commit is contained in:
2017-03-24 18:24:42 +01:00
parent 522c2a94ab
commit 9549c5f791
4 changed files with 100 additions and 112 deletions
+1
View File
@@ -24,6 +24,7 @@ class SupportersController < ApplicationController
end
def mailchimp_registration
return unless Rails.env.production?
mailchimp = Mailchimp::API.new(ENV['MAILCHIMP_API'])
mailchimp.lists.subscribe(ENV['CH420_LIST_ID'], { 'email' => @supporter.email }, merge_vars, 'html', false)
end