From 5f3cac55328262189e46414135b37a5f20eb8490 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 4 Jul 2013 11:48:30 +0400 Subject: [PATCH] Send #issue_assign_notification on create --- lib/modules/observers/activity_feed/issue.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/observers/activity_feed/issue.rb b/lib/modules/observers/activity_feed/issue.rb index d2ed1d016..a098190fa 100644 --- a/lib/modules/observers/activity_feed/issue.rb +++ b/lib/modules/observers/activity_feed/issue.rb @@ -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,