Merge pull request #206 from abf/rosa-build:send-issue-assign-notification-on-create

Send #issue_assign_notification on create Issue
This commit is contained in:
avm 2013-07-04 12:10:26 +04:00
commit 9cf7209986
1 changed files with 1 additions and 2 deletions

View File

@ -34,8 +34,7 @@ module Modules::Observers::ActivityFeed::Issue
def send_assign_notifications(action = :create)
if assignee_id && assignee_id_changed?
if assignee.notifier.issue_assign && assignee.notifier.can_notify
user_mailer_action = action == :create ? :new_issue_notification : :issue_assign_notification
UserMailer.send(user_mailer_action, self, assignee).deliver
UserMailer.issue_assign_notification(self, assignee).deliver
end
ActivityFeed.create(
:user => assignee,