Skip to content
Snippets Groups Projects
Commit 17192d1b authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch 'keyword-args-2.0' into 'master'

Don't use required keyword arguments to maintain support for Ruby 2.0.

See merge request !433
parents 2953e0d1 8a7b4eeb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -188,7 +188,7 @@ GEM
dotenv (>= 0.7)
thor (>= 0.13.6)
formatador (0.2.4)
gemnasium-gitlab-service (0.2.5)
gemnasium-gitlab-service (0.2.4)
rugged (~> 0.21)
gemojione (2.0.0)
json
Loading
Loading
Loading
Loading
@@ -16,13 +16,17 @@ module Emails
subject: subject("Project was moved"))
end
 
def repository_push_email(project_id, recipient, author_id:,
ref:,
action:,
def repository_push_email(project_id, recipient, author_id: nil,
ref: nil,
action: nil,
compare: nil,
reverse_compare: false,
send_from_committer_email: false,
disable_diffs: false)
unless author_id && ref && action
raise ArgumentError, "missing keywords: author_id, ref, action"
end
@project = Project.find(project_id)
@author = User.find(author_id)
@reverse_compare = reverse_compare
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment