Commit 9e608b41 authored by Robert Schilling's avatar Robert Schilling

Avoid helper call with default parameters

parent 35d6ea4f
......@@ -59,7 +59,7 @@ module API
else merge_requests
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
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment