diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-03 18:15:48 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-03 18:16:27 +0200 |
commit | e50bed7eff276eac2dc1fbb86bddb04d9dd9e70d (patch) | |
tree | 36c36a24664049a8b6c3fd4a97d9f9b9ac1f3669 /lib/api | |
parent | 829441dcbccf79e5bb8c9c3d7486a81e6a3dbfe4 (diff) | |
download | gitlab-ce-e50bed7eff276eac2dc1fbb86bddb04d9dd9e70d.tar.gz |
Fix lambda arguments in Grape entities
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 75d56b82424..1619c1a09ee 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -149,11 +149,11 @@ module API expose_url(api_v4_projects_path(id: project.id)) end - expose :issues, if: -> (*args) { issues_available?(*args) } do |project| + expose :issues, if: -> (project, options) { issues_available?(project, options) } do |project| expose_url(api_v4_projects_issues_path(id: project.id)) end - expose :merge_requests, if: -> (*args) { mrs_available?(*args) } do |project| + expose :merge_requests, if: -> (project, options) { mrs_available?(project, options) } do |project| expose_url(api_v4_projects_merge_requests_path(id: project.id)) end |