From ab4dbb110d67376ce3025e9aba89d70683ab1325 Mon Sep 17 00:00:00 2001 From: Vishnu Atrai Date: Sun, 22 May 2011 22:08:05 +0530 Subject: remove require active_support/tzinfo as file dosent exists #TODO fix --- activesupport/lib/active_support/values/time_zone.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb index abd585b64f..728921a069 100644 --- a/activesupport/lib/active_support/values/time_zone.rb +++ b/activesupport/lib/active_support/values/time_zone.rb @@ -315,10 +315,8 @@ module ActiveSupport tzinfo.period_for_local(time, dst) end - # TODO: Preload instead of lazy load for thread safety def self.find_tzinfo(name) - require 'active_support/tzinfo' unless defined?(::TZInfo) - ::TZInfo::TimezoneProxy.new(MAPPING[name] || name) + TZInfo::TimezoneProxy.new(MAPPING[name] || name) end class << self -- cgit v1.2.3