mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ensure to reference the proper TZInfo namespace [#4268 state:resolved].
This commit is contained in:
@@ -305,8 +305,8 @@ module ActiveSupport
|
||||
|
||||
# TODO: Preload instead of lazy load for thread safety
|
||||
def tzinfo
|
||||
require 'tzinfo' unless defined?(TZInfo)
|
||||
@tzinfo ||= TZInfo::Timezone.get(MAPPING[name])
|
||||
require 'tzinfo' unless defined?(::TZInfo)
|
||||
@tzinfo ||= ::TZInfo::Timezone.get(MAPPING[name])
|
||||
end
|
||||
|
||||
unless const_defined?(:ZONES)
|
||||
|
||||
Reference in New Issue
Block a user