diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-05-10 12:03:29 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-10 16:48:18 +0200 |
commit | ebd8b7f60f41358df562625a4692f352b86b8c80 (patch) | |
tree | 69faf7b4f52af5904d2426116eeee912c8bbaf9c /lib/api/helpers.rb | |
parent | 19e91e4ba9f037b087640d55b3385febe243cf46 (diff) | |
download | gitlab-ce-ebd8b7f60f41358df562625a4692f352b86b8c80.tar.gz |
Use new SnippetsFinder signature in APIbvl-security-patches
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 86bf567fe69..c643ea8e5a7 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -91,8 +91,8 @@ module API end def find_project_snippet(id) - finder_params = { filter: :by_project, project: user_project } - SnippetsFinder.new.execute(current_user, finder_params).find(id) + finder_params = { project: user_project } + SnippetsFinder.new(current_user, finder_params).execute.find(id) end def find_merge_request_with_access(iid, access_level = :read_merge_request) |