public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
TimeZone -> ActiveSupport::TimeZone.  [#387 state:resolved]
Ruy Asan (author)
Tue Jun 10 21:13:27 -0700 2008
jeremy (committer)
Wed Jun 11 00:49:13 -0700 2008
commit  3f594299c85ef111ac479b845fa8c7e37563ff66
tree    d08164c273f787d9d2e5047ef951f1aae1ab2d05
parent  634e462a0b70ddae2f21dbddddd07e7b340bb69c
...
304
305
306
307
 
308
309
310
...
417
418
419
420
 
421
422
423
...
304
305
306
 
307
308
309
310
...
417
418
419
 
420
421
422
423
0
@@ -304,7 +304,7 @@ module ActionView
0
       #
0
       # NOTE: Only the option tags are returned, you have to wrap this call in
0
       # a regular HTML select tag.
0
-      def time_zone_options_for_select(selected = nil, priority_zones = nil, model = TimeZone)
0
+      def time_zone_options_for_select(selected = nil, priority_zones = nil, model = ::ActiveSupport::TimeZone)
0
         zone_options = ""
0
 
0
         zones = model.all
0
@@ -417,7 +417,7 @@ module ActionView
0
         value = value(object)
0
         content_tag("select",
0
           add_options(
0
-            time_zone_options_for_select(value || options[:default], priority_zones, options[:model] || TimeZone),
0
+            time_zone_options_for_select(value || options[:default], priority_zones, options[:model] || ActiveSupport::TimeZone),
0
             options, value
0
           ), html_options
0
         )

Comments