Refactor MembersHelper#filter_group_project_member_path

parent c3af880a
......@@ -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
......
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