From e445e14d65935dda9b3e022bdbba83bcc3544652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 29 Apr 2019 11:14:16 +0200 Subject: [PATCH] Use ActiveSupport::HashWithIndifferentAccess Using `HashWithIndifferentAccess` directly will be deprecated in Rails 5.1. --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 800a65e0a..905bcf8c8 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -12,7 +12,7 @@ class UsersController < ApplicationController private def set_activity_counts - @activity_counts = HashWithIndifferentAccess.new( + @activity_counts = ActiveSupport::HashWithIndifferentAccess.new( proposals: Proposal.where(author_id: @user.id).count, debates: (Setting["process.debates"] ? Debate.where(author_id: @user.id).count : 0), budget_investments: (Setting["process.budgets"] ? Budget::Investment.where(author_id: @user.id).count : 0),