Notification refactoring
This commit is contained in:
parent
f7859ec1ed
commit
7713f7fefb
7 changed files with 55 additions and 28 deletions
|
@ -67,10 +67,7 @@ class IssuesController < ApplicationController
|
|||
def create
|
||||
@issue = @project.issues.new(params[:issue])
|
||||
@issue.author = current_user
|
||||
|
||||
if @issue.save && @issue.assignee != current_user
|
||||
Notify.new_issue_email(@issue).deliver
|
||||
end
|
||||
@issue.save
|
||||
|
||||
respond_with(@issue)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue