Flowdock
method

load_country_zones

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ActiveSupport::TimeZone
load_country_zones(code) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/values/time_zone.rb, line 257
        def load_country_zones(code)
          country = TZInfo::Country.get(code)
          country.zone_identifiers.map do |tz_id|
            if MAPPING.value?(tz_id)
              MAPPING.inject([]) do |memo, (key, value)|
                memo << self[key] if value == tz_id
                memo
              end
            else
              create(tz_id, nil, TZInfo::Timezone.new(tz_id))
            end
          end.flatten(1).sort!
        end
Register or log in to add new notes.