Avoid helper call with default parameters

This commit is contained in:
Robert Schilling 2016-11-22 08:27:21 +01:00
parent 35d6ea4f5e
commit 9e608b41a1

View file

@ -59,7 +59,7 @@ module API
else merge_requests else merge_requests
end end
merge_requests = merge_requests.reorder(issuable_order_by => issuable_sort) merge_requests = merge_requests.reorder(params[:order_by] => params[:sort])
present paginate(merge_requests), with: Entities::MergeRequest, current_user: current_user, project: user_project present paginate(merge_requests), with: Entities::MergeRequest, current_user: current_user, project: user_project
end end