From f3afb49f6660129f455b6b8f70c51a391c088d02 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Thu, 8 Feb 2024 11:45:38 -0500 Subject: [PATCH] Fix deprecation by avoiding a deprecation on the name method Fixes the warning: DEPRECATION WARNING: ActiveSupport::TimeWithZone.name has been deprecated and from Rails 7.1 will use the default Ruby implementation. You can set `config.active_support.remove_deprecated_time_with_zone_name = true` to enable the new behavior now. (called from block in ruby_object_usage at /Users/joerafaniello/Code/manageiq/app/models/miq_worker/runner.rb:435) --- app/models/miq_worker/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/miq_worker/runner.rb b/app/models/miq_worker/runner.rb index 776f086089c..5f94937f724 100644 --- a/app/models/miq_worker/runner.rb +++ b/app/models/miq_worker/runner.rb @@ -436,7 +436,7 @@ def self.ruby_object_usage ObjectSpace.each_object(Object) do |obj| next unless defined?(obj.class) - types[obj.class.name] += 1 + types[obj.class.to_s] += 1 end types end