Skip to content
Snippets Groups Projects
Commit f67c7a4d authored by Rémy Coutable's avatar Rémy Coutable
Browse files

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: default avatarRémy Coutable <remy@rymai.me>
parent e753444c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment