Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure to reference the proper TZInfo namespace [#4268 state:resolved].
  • Loading branch information
josevalim committed Mar 26, 2010
1 parent c7cc958 commit 5231e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/values/time_zone.rb
Expand Up @@ -305,8 +305,8 @@ def period_for_local(time, dst=true)

# 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)
Expand Down

0 comments on commit 5231e4e

Please sign in to comment.