Commit 6953b39a authored by Harsh Chouraria's avatar Harsh Chouraria

Add a preview email method

Suggested by @vij

Follows
https://docs.gitlab.com/ee/development/emails.html#mailer-previews
parent 28f95a9e
......@@ -84,6 +84,10 @@ class NotifyPreview < ActionMailer::Preview
Notify.issues_csv_email(user, project, '1997,Ford,E350', { truncated: false, rows_expected: 3, rows_written: 3 }).message
end
def new_merge_request_email
Notify.new_merge_request_email(user.id, merge_request.id).message
end
def closed_merge_request_email
Notify.closed_merge_request_email(user.id, issue.id, user.id).message
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment