diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-06-29 11:57:06 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-06-29 11:57:06 +0000 |
commit | 88c60307bd1f215095834f09a1a5cb18701ac8ad (patch) | |
tree | 2d9343109bcdf6bcc3ba19ef6b9f7186e361465c /app/services | |
parent | 971604de4cfa324d91c41650fabc129420c8d1cc (diff) | |
parent | 70b05a83772abc59b3c914c84bc4d2c07749884d (diff) | |
download | gitlab-ce-88c60307bd1f215095834f09a1a5cb18701ac8ad.tar.gz |
Merge branch 'dm-merge-request-creations-controller' into 'master'
Split up MergeRequestsController
See merge request !12150
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/merge_requests/get_urls_service.rb | 2 | ||||
-rw-r--r-- | app/services/projects/unlink_fork_service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/merge_requests/get_urls_service.rb b/app/services/merge_requests/get_urls_service.rb index f00a33969a8..5dd40e07c0d 100644 --- a/app/services/merge_requests/get_urls_service.rb +++ b/app/services/merge_requests/get_urls_service.rb @@ -49,7 +49,7 @@ module MergeRequests def url_for_new_merge_request(branch_name) merge_request_params = { source_branch: branch_name } - url = Gitlab::Routing.url_helpers.new_namespace_project_merge_request_url(project.namespace, project, merge_request: merge_request_params) + url = Gitlab::Routing.url_helpers.namespace_project_new_merge_request_url(project.namespace, project, merge_request: merge_request_params) { branch_name: branch_name, url: url, new_merge_request: true } end diff --git a/app/services/projects/unlink_fork_service.rb b/app/services/projects/unlink_fork_service.rb index 315c3e16292..f385e426827 100644 --- a/app/services/projects/unlink_fork_service.rb +++ b/app/services/projects/unlink_fork_service.rb @@ -10,7 +10,7 @@ module Projects merge_requests = @project.forked_from_project.merge_requests.opened.from_project(@project) merge_requests.each do |mr| - MergeRequests::CloseService.new(@project, @current_user).execute(mr) + ::MergeRequests::CloseService.new(@project, @current_user).execute(mr) end @project.forked_project_link.destroy |