aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-10-29 10:45:28 +0900
committerGitHub <noreply@github.com>2018-10-29 10:45:28 +0900
commit0bd4894d8b1977c00f4af64947ef860eee5d2b44 (patch)
tree7a03b569933d1f5aa1344980312ba2828f1e9da9 /activesupport/lib
parentd3cf5d25fca91ee48097f10b1f34b2f8f852cb6a (diff)
parent3d137b3a125030a08142419c260188599d321c85 (diff)
downloadrails-0bd4894d8b1977c00f4af64947ef860eee5d2b44.tar.gz
rails-0bd4894d8b1977c00f4af64947ef860eee5d2b44.tar.bz2
rails-0bd4894d8b1977c00f4af64947ef860eee5d2b44.zip
Merge pull request #34334 from albertoalmagro/privatize-constants-activesupport-timezone
Privatize and add # :nodoc: to constants
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb
index fd07a3a6a2..d9e033e23b 100644
--- a/activesupport/lib/active_support/values/time_zone.rb
+++ b/activesupport/lib/active_support/values/time_zone.rb
@@ -182,8 +182,9 @@ module ActiveSupport
"Samoa" => "Pacific/Apia"
}
- UTC_OFFSET_WITH_COLON = "%s%02d:%02d"
- UTC_OFFSET_WITHOUT_COLON = UTC_OFFSET_WITH_COLON.tr(":", "")
+ UTC_OFFSET_WITH_COLON = "%s%02d:%02d" # :nodoc:
+ UTC_OFFSET_WITHOUT_COLON = UTC_OFFSET_WITH_COLON.tr(":", "") # :nodoc:
+ private_constant :UTC_OFFSET_WITH_COLON, :UTC_OFFSET_WITHOUT_COLON
@lazy_zones_map = Concurrent::Map.new
@country_zones = Concurrent::Map.new