Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-05-10 13:03:29 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-05-10 14:03:02 +0300
commit218692aeadcffaa2f8fc5f0cde911adb48222f54 (patch)
tree8516d96dcc76e805c3f02ecb7450f10fe3f779ca /lib
parentebf0dab8f0d7407a1ad82782ecdc30708fb5d53b (diff)
Use new SnippetsFinder signature in API
Diffstat (limited to 'lib')
-rw-r--r--lib/api/helpers.rb4
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)