Commit f67c7a4d authored by Rémy Coutable's avatar Rémy Coutable

Fix Issue board when using Ruby 2.4

In Ruby 2.4, Hash#compact exists and returns a Hash, while in
Ruby 2.3,
Hash#compact is implemented by Rails and returns a new
`ActionController::Parameters` instance in this case.

Also, `ActionController::Parameters#compact` is deprecated in
Rails 5.1 so we're using `reject { |_, value| value.nil? }` instead.
Signed-off-by: Rémy Coutable's avatarRémy Coutable <remy@rymai.me>
parent e753444c
Pipeline #10452947 (#) passed with stages
in 107 minutes and 46 seconds
......@@ -66,7 +66,8 @@ module Projects
end
def filter_params
params.merge(board_id: params[:board_id], id: params[:list_id]).compact
params.merge(board_id: params[:board_id], id: params[:list_id])
.reject { |_, value| value.nil? }
end
def move_params
......
---
title: Fix Issue board when using Ruby 2.4
merge_request: 13220
author:
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