aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/values
diff options
context:
space:
mode:
authorTony Miller <mcfiredrill@gmail.com>2014-03-03 16:13:10 +0900
committerArthur Neves <arthurnn@gmail.com>2015-02-06 22:46:38 -0500
commit89d48fb342279767b1446c8233ab6abefca7919c (patch)
tree35af2ce20161fd4111323c8ca5032fe862a14a71 /activesupport/lib/active_support/values
parentcdd3961e2b9990745a1aaf07e9a6981cd183b820 (diff)
downloadrails-89d48fb342279767b1446c8233ab6abefca7919c.tar.gz
rails-89d48fb342279767b1446c8233ab6abefca7919c.tar.bz2
rails-89d48fb342279767b1446c8233ab6abefca7919c.zip
make zones_map private
Conflicts: activesupport/lib/active_support/values/time_zone.rb
Diffstat (limited to 'activesupport/lib/active_support/values')
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb
index 728b53849d..da39f0d245 100644
--- a/activesupport/lib/active_support/values/time_zone.rb
+++ b/activesupport/lib/active_support/values/time_zone.rb
@@ -224,13 +224,6 @@ module ActiveSupport
@zones ||= zones_map.values.sort
end
- def zones_map
- @zones_map ||= begin
- MAPPING.each_key {|place| self[place]} # load all the zones
- @lazy_zones_map
- end
- end
-
# Locate a specific time zone object. If the argument is a string, it
# is interpreted to mean the name of the timezone to locate. If it is a
# numeric value it is either the hour offset, or the second offset, of the
@@ -257,6 +250,14 @@ module ActiveSupport
def us_zones
@us_zones ||= all.find_all { |z| z.name =~ /US|Arizona|Indiana|Hawaii|Alaska/ }
end
+
+ private
+ def zones_map
+ @zones_map ||= begin
+ MAPPING.each_key {|place| self[place]} # load all the zones
+ @lazy_zones_map
+ end
+ end
end
include Comparable