f67c7a4da6
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> |
||
---|---|---|
.. | ||
admin | ||
ci | ||
concerns | ||
dashboard | ||
explore | ||
groups | ||
import | ||
oauth | ||
profiles | ||
projects | ||
sherlock | ||
snippets | ||
abuse_reports_controller.rb | ||
application_controller.rb | ||
autocomplete_controller.rb | ||
confirmations_controller.rb | ||
dashboard_controller.rb | ||
groups_controller.rb | ||
health_check_controller.rb | ||
health_controller.rb | ||
help_controller.rb | ||
invites_controller.rb | ||
jwt_controller.rb | ||
koding_controller.rb | ||
metrics_controller.rb | ||
notification_settings_controller.rb | ||
omniauth_callbacks_controller.rb | ||
passwords_controller.rb | ||
profiles_controller.rb | ||
projects_controller.rb | ||
registrations_controller.rb | ||
root_controller.rb | ||
search_controller.rb | ||
sent_notifications_controller.rb | ||
sessions_controller.rb | ||
snippets_controller.rb | ||
unicorn_test_controller.rb | ||
uploads_controller.rb | ||
users_controller.rb |