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:27 -0700 2008
commit  011b5eda0e2d91c5b09c63cef28a9d6aac5d2ce5
tree    20c86559a28a5f4097c8dc322ae9480479ac98bf
parent  a797375c99efc88ee1438925cdc016305c66166c
...
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