From e0b709266eb912ba7ce73688a958db06dd420a6f Mon Sep 17 00:00:00 2001 From: Robb Kidd Date: Mon, 14 May 2012 20:19:28 -0400 Subject: [PATCH] Fix missing call to MergeRequest.find in Notify#changed_merge_request_email --- app/mailers/notify.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index 2f7d32be..967be900 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -61,7 +61,7 @@ class Notify < ActionMailer::Base def changed_merge_request_email(user, merge_request) @user = user - @merge_request = MergeRequest(merge_request.id) + @merge_request = MergeRequest.find(merge_request.id) @assignee_was ||= User.find(@merge_request.assignee_id_was) @project = @merge_request.project mail(:to => @user['email'], :subject => "gitlab | merge request changed | #{@merge_request.title} ")