1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Insert in sorted order to avoid TimeZone sort

This commit is contained in:
Jeremy Kemper 2009-04-07 21:03:40 -07:00
parent f093088433
commit 9cc8a75d84

View file

@ -363,14 +363,13 @@ module ActiveSupport
"Wellington" ],
[ 46_800, "Nuku'alofa" ]].
each do |offset, *places|
places.each do |place|
places.sort.each do |place|
place.freeze
zone = new(place, offset)
ZONES << zone
ZONES_MAP[place] = zone
end
end
ZONES.sort!
ZONES.freeze
ZONES_MAP.freeze