Ensure to reference the proper TZInfo namespace [#4268 state:resolved].

This commit is contained in:
José Valim
2010-03-26 13:24:02 +01:00
parent c7cc958368
commit 5231e4e8c5

View File

@@ -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)