Select Git revision
issues_controller.rb
Forked from
GitLab.org / GitLab FOSS
2 commits behind, 5003 commits ahead of the upstream repository.
-
Rémy Coutable authored
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>
Rémy Coutable authoredIn 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>
issues_controller.rb 2.71 KiB