diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-07-05 17:53:00 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-07-05 17:53:00 +0000 |
commit | 462b1ed99d729c3ede32d00fbac042ecb32268b1 (patch) | |
tree | 7db61c84a1ee413d756cd889df40f7e9feec93db /lib/api | |
parent | c4e3cd9d1e9fc4b1ea988c2bcc78862c11d9e0b6 (diff) | |
parent | 873b40555b582638992e7cdeb2081c29d08cae05 (diff) | |
download | gitlab-ce-462b1ed99d729c3ede32d00fbac042ecb32268b1.tar.gz |
Merge branch 'dm-project-path-helpers-try-2' into 'master'
Create and use project path helpers that only need a project, no namespace
See merge request !12566
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index cef5a0abe12..9cd078a2356 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -434,7 +434,7 @@ module API target_url = "namespace_project_#{target_type}_url" target_anchor = "note_#{todo.note_id}" if todo.note_id? - Gitlab::Application.routes.url_helpers.public_send(target_url, + Gitlab::Routing.url_helpers.public_send(target_url, todo.project.namespace, todo.project, todo.target, anchor: target_anchor) end |