Avoid helper call with default parameters
This commit is contained in:
parent
35d6ea4f5e
commit
9e608b41a1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue