summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-11-17 15:52:15 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-16 20:28:39 -0200
commit06f696dd0a6326ca521d81203901618afa0f9a9a (patch)
tree451504c0043974fd334904bec18e4b8b06a19c5b /app
parentc3af880aeea12565bc33a29284a9836e3b800019 (diff)
downloadgitlab-ce-06f696dd0a6326ca521d81203901618afa0f9a9a.tar.gz
Refactor MembersHelper#filter_group_project_member_path
Diffstat (limited to 'app')
-rw-r--r--app/helpers/members_helper.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/helpers/members_helper.rb b/app/helpers/members_helper.rb
index cf8fdfca1bd..41d471cc92f 100644
--- a/app/helpers/members_helper.rb
+++ b/app/helpers/members_helper.rb
@@ -38,12 +38,8 @@ module MembersHelper
end
def filter_group_project_member_path(options = {})
- exist_opts = {
- search: params[:search],
- sort: params[:sort]
- }
+ options = params.slice(:search, :sort).merge(options)
- options = exist_opts.merge(options)
path = request.path
path << "?#{options.to_param}"
path