email newsletter capability

This commit is contained in:
Kyle Drake 2015-06-28 21:41:08 -07:00
parent d4303c7e46
commit b986c57577
8 changed files with 169 additions and 1 deletions

View file

@ -3,6 +3,7 @@ class EmailWorker
sidekiq_options queue: :emails, retry: 10, backtrace: true
def perform(args={})
raise 'no' if ENV['RACK_ENV'].nil? || ENV['RACK_ENV'] == 'development'
unsubscribe_token = Site.email_unsubscribe_token args['to']
if args['no_footer']