diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-23 15:00:12 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-23 15:08:19 +0100 |
commit | b13bed62eaa047560370692f22041993635f83ee (patch) | |
tree | c0e4fa79b1e6f2f961cbd67bb6a69859f46bc2f7 /app/mailers | |
parent | bf235053adc60bb0b940ef6fb68a59485bc815aa (diff) | |
download | gitlab-ce-b13bed62eaa047560370692f22041993635f83ee.tar.gz |
Clean up code by using keyword arguments.
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/projects.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb index d2165c9f764..48458baa674 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -16,7 +16,13 @@ module Emails subject: subject("Project was moved")) end - def repository_push_email(project_id, recipient, author_id, ref, action, compare, reverse_compare = false, send_from_committer_email = false, disable_diffs = false) + def repository_push_email(project_id, recipient, author_id:, + ref:, + action:, + compare: nil, + reverse_compare: false, + send_from_committer_email: false, + disable_diffs: false) @project = Project.find(project_id) @author = User.find(author_id) @reverse_compare = reverse_compare |