From ada3d993960fb34f400460134719edb544dbe2c9 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 12 Jan 2016 11:53:34 +0800 Subject: [PATCH] fix for emails --- app/controllers/admin/news_controller.rb | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/controllers/admin/news_controller.rb b/app/controllers/admin/news_controller.rb index d3af478..d214b0d 100644 --- a/app/controllers/admin/news_controller.rb +++ b/app/controllers/admin/news_controller.rb @@ -65,14 +65,14 @@ class Admin::NewsController < OrbitAdminController news_bulletin.save else news_bulletin.save - Thread.new do - begin - send_notification_mail_to_managers(news_bulletin,"approval") - rescue e - end - end + # Thread.new do + # begin + # send_notification_mail_to_managers(news_bulletin,"approval") + # rescue e + # end + # end end - build_email(news_bulletin) + # build_email(news_bulletin) redirect_to params['referer_url'] end @@ -89,7 +89,7 @@ class Admin::NewsController < OrbitAdminController news_bulletin.reapproval = false news_bulletin.rejection_reason = params["reason"] news_bulletin.save - send_rejection_email(news_bulletin) + # send_rejection_email(news_bulletin) end redirect_to "/admin/news" end @@ -125,15 +125,15 @@ class Admin::NewsController < OrbitAdminController if news_bulletin.rejected news_bulletin.reapproval = true news_bulletin.save - Thread.new do - begin - send_notification_mail_to_managers(news_bulletin, "reapproval") - rescue e - end - end + # Thread.new do + # begin + # send_notification_mail_to_managers(news_bulletin, "reapproval") + # rescue e + # end + # end end news_bulletin.save - build_email(news_bulletin) + # build_email(news_bulletin) redirect_to params['referer_url'] end