Email invoice support

This commit is contained in:
Kyle Drake 2017-10-04 20:27:24 -07:00
parent ea760fc849
commit 68352e3d8f
3 changed files with 37 additions and 1 deletions

View file

@ -265,6 +265,7 @@ post '/settings/change_email_notification' do
owner.send_emails = params[:send_emails]
owner.send_comment_emails = params[:send_comment_emails]
owner.send_follow_emails = params[:send_follow_emails]
owner.email_invoice = params[:email_invoice]
owner.save_changes validate: false
flash[:success] = 'Email notification settings have been updated.'
redirect '/settings#email'