Fix NotificationService reassign_email method

master
Dmitriy Zaporozhets 2013-03-27 22:33:59 +02:00
parent 2b2d43ed2a
commit 11d52a1553
1 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ class NotificationService
end
end
def reassign_email(target, current_user, entity_sym)
def reassign_email(target, current_user, method)
recipients = User.where(id: [target.assignee_id, target.assignee_id_was])
# reject users with disabled notifications
@ -136,7 +136,7 @@ class NotificationService
# Reject me from recipients if I reassign an item
recipients.delete(current_user)
recipients.each do |recipient_id|
recipients.each do |recipient|
Notify.delay.send(method, recipient.id, target.id, target.assignee_id_was)
end
end