Rename changed_issue_email to reassigned_issue_email & make resque friendly
#changed_issue_email was really sending emails about issue reassignments. Updated method name to reflect that. Update method to take ids and then perform #finds itself during mailer queue worker kick-off.
This commit is contained in:
parent
345f176a74
commit
dd921053c8
4 changed files with 14 additions and 15 deletions
|
@ -78,8 +78,8 @@ class MailerObserver < ActiveRecord::Observer
|
|||
recipients_ids = issue.assignee_id_was, issue.assignee_id
|
||||
recipients_ids.delete current_user.id
|
||||
|
||||
User.find(recipients_ids).each do |user|
|
||||
Notify.changed_issue_email(user, issue).deliver
|
||||
recipients_ids.each do |recipient_id|
|
||||
Notify.reassigned_issue_email(recipient_id, issue.id, issue.assignee_id_was).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue