aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-05-22 22:08:05 +0530
committerVishnu Atrai <me@vishnuatrai.com>2011-05-22 22:08:05 +0530
commitab4dbb110d67376ce3025e9aba89d70683ab1325 (patch)
treed9467a5feff1c6d89124cfbc552ebd97e73c75fa /activesupport
parentff55924921636c6ddeaea5d08a3587a97cd4e69b (diff)
downloadrails-ab4dbb110d67376ce3025e9aba89d70683ab1325.tar.gz
rails-ab4dbb110d67376ce3025e9aba89d70683ab1325.tar.bz2
rails-ab4dbb110d67376ce3025e9aba89d70683ab1325.zip
remove require active_support/tzinfo as file dosent exists #TODO fix
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb4
1 files changed, 1 insertions, 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