method

load_country_zones

Importance_0
v6.0.0 - 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 267
        def load_country_zones(code)
          country = TZInfo::Country.get(code)
          country.zone_identifiers.flat_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.sort!
        end
Register or log in to add new notes.