Fix missing call to MergeRequest.find in Notify#changed_merge_request_email
This commit is contained in:
parent
65382133d5
commit
e0b709266e
|
@ -61,7 +61,7 @@ class Notify < ActionMailer::Base
|
||||||
|
|
||||||
def changed_merge_request_email(user, merge_request)
|
def changed_merge_request_email(user, merge_request)
|
||||||
@user = user
|
@user = user
|
||||||
@merge_request = MergeRequest(merge_request.id)
|
@merge_request = MergeRequest.find(merge_request.id)
|
||||||
@assignee_was ||= User.find(@merge_request.assignee_id_was)
|
@assignee_was ||= User.find(@merge_request.assignee_id_was)
|
||||||
@project = @merge_request.project
|
@project = @merge_request.project
|
||||||
mail(:to => @user['email'], :subject => "gitlab | merge request changed | #{@merge_request.title} ")
|
mail(:to => @user['email'], :subject => "gitlab | merge request changed | #{@merge_request.title} ")
|
||||||
|
|
Loading…
Reference in a new issue