removed notifications
This commit is contained in:
parent
7042492328
commit
72927b1723
|
@ -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
|
||||
|
|
Reference in New Issue