Skip to content

Commit

Permalink
Fix deprecation by avoiding a deprecation on the name method
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jrafanie committed Feb 21, 2024
1 parent 2e3af04 commit 4a69a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_worker/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,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
Expand Down

0 comments on commit 4a69a73

Please sign in to comment.