Method: ActiveSupport::TimeWithZone.name

Defined in:
lib/active_support/time_with_zone.rb

.nameObject

Report class name as ‘Time’ to thwart type checking.



44
45
46
47
48
49
50
51
52
53
# File 'lib/active_support/time_with_zone.rb', line 44

def self.name
  ActiveSupport::Deprecation.warn(<<~EOM)
    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.
  EOM

  "Time"
end