Skip to content

remove require active_support/tzinfo as file dosent exists #TODO fix #1215

Merged
merged 1 commit into from May 22, 2011
View
4 activesupport/lib/active_support/values/time_zone.rb
@@ -315,10 +315,8 @@ def period_for_local(time, dst=true)
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
Something went wrong with that request. Please try again.