diff --git a/app/controllers/admin/announcements_controller.rb b/app/controllers/admin/announcements_controller.rb index 629942e..a485646 100644 --- a/app/controllers/admin/announcements_controller.rb +++ b/app/controllers/admin/announcements_controller.rb @@ -63,12 +63,12 @@ class Admin::AnnouncementsController < OrbitAdminController bulletin.save else bulletin.save - Thread.new do - begin - send_notification_mail_to_managers(bulletin,"approval") - rescue e - end - end + # Thread.new do + # begin + # send_notification_mail_to_managers(bulletin,"approval") + # rescue e + # end + # end end build_email(bulletin) redirect_to params['referer_url'] @@ -87,7 +87,7 @@ class Admin::AnnouncementsController < OrbitAdminController bulletin.reapproval = false bulletin.rejection_reason = params["reason"] bulletin.save - send_rejection_email(bulletin) + # send_rejection_email(bulletin) end redirect_to admin_announcements_path end @@ -119,12 +119,12 @@ class Admin::AnnouncementsController < OrbitAdminController if bulletin.rejected bulletin.reapproval = true bulletin.save - Thread.new do - begin - send_notification_mail_to_managers(bulletin,"reapproval") - rescue e - end - end + # Thread.new do + # begin + # send_notification_mail_to_managers(bulletin,"reapproval") + # rescue e + # end + # end else bulletin.save end