diff options
author | Rémy Coutable <remy@rymai.me> | 2017-08-01 10:40:41 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-01 16:07:05 +0200 |
commit | f67c7a4da6eb7e363f5433df74016f234999c467 (patch) | |
tree | 6dcc54e8f7aa0f4589c8cafd52b70ebf8bda2ac2 /lib/api/api.rb | |
parent | e753444c7341bb9c327aaf7db69a4e612bff0449 (diff) | |
download | gitlab-ce-f67c7a4da6eb7e363f5433df74016f234999c467.tar.gz |
Fix Issue board when using Ruby 2.435769-fix-ruby-2-4-compatibility
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 <remy@rymai.me>
Diffstat (limited to 'lib/api/api.rb')
0 files changed, 0 insertions, 0 deletions