Refactor MembersHelper#filter_group_project_member_path

parent c3af880a
...@@ -38,12 +38,8 @@ module MembersHelper ...@@ -38,12 +38,8 @@ module MembersHelper
end end
def filter_group_project_member_path(options = {}) def filter_group_project_member_path(options = {})
exist_opts = { options = params.slice(:search, :sort).merge(options)
search: params[:search],
sort: params[:sort]
}
options = exist_opts.merge(options)
path = request.path path = request.path
path << "?#{options.to_param}" path << "?#{options.to_param}"
path path
......
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