Skip to content
Browse files

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

  • Loading branch information...
1 parent c7cc958 commit 5231e4e8c51333acd62d2e07a0f73cf0e0169fc2 @josevalim josevalim committed Mar 26, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/values/time_zone.rb
View
4 activesupport/lib/active_support/values/time_zone.rb
@@ -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)

0 comments on commit 5231e4e

Please sign in to comment.
Something went wrong with that request. Please try again.