diff options
author | Andrew White <andrew.white@unboxed.co> | 2018-02-19 10:24:13 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2018-02-19 10:37:35 +0000 |
commit | 2d95956e8b564236f0c5f98ea18d8535b05344f0 (patch) | |
tree | 4f4833dddfe790d4832ed5a1c12311ab54e93da0 /railties/lib/rails/info_controller.rb | |
parent | f712ef27c55fc4210a722d447e05271adef1e57f (diff) | |
download | rails-2d95956e8b564236f0c5f98ea18d8535b05344f0.tar.gz rails-2d95956e8b564236f0c5f98ea18d8535b05344f0.tar.bz2 rails-2d95956e8b564236f0c5f98ea18d8535b05344f0.zip |
Return all mappings for a timezone id in `country_zones`
Some timezones like `Europe/London` have multiple mappings in
`ActiveSupport::TimeZone::MAPPING` so return all of them instead
of the first one found by using `Hash#value`. e.g:
# Before
ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh"]
# After
ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh", "London"]
Fixes #31668.
Diffstat (limited to 'railties/lib/rails/info_controller.rb')
0 files changed, 0 insertions, 0 deletions