diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-05 09:08:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-05 09:08:31 +0000 |
commit | a76d34e6716aa8267111ecdcd21416e9dec3a08d (patch) | |
tree | 25876a46afec0af5b0d7168addb45e743d2a2128 /lib | |
parent | 00bd11b166a886742f04d38c0d2551e52ff51472 (diff) | |
download | gitlab-ce-a76d34e6716aa8267111ecdcd21416e9dec3a08d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/todos.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/api/todos.rb b/lib/api/todos.rb index e3f3aca27df..02b8bb55274 100644 --- a/lib/api/todos.rb +++ b/lib/api/todos.rb @@ -13,13 +13,6 @@ module API 'issues' => ->(iid) { find_project_issue(iid) } }.freeze - helpers do - # EE::API::Todos would override this method - def find_todos - TodosFinder.new(current_user, params).execute - end - end - params do requires :id, type: String, desc: 'The ID of a project' end @@ -48,6 +41,10 @@ module API resource :todos do helpers do + def find_todos + TodosFinder.new(current_user, params).execute + end + def issuable_and_awardable?(type) obj_type = Object.const_get(type, false) |