Skip to content
This repository
Browse code

TimeZone -> ActiveSupport::TimeZone. [#387 state:resolved]

  • Loading branch information...
commit 011b5eda0e2d91c5b09c63cef28a9d6aac5d2ce5 1 parent a797375
Ruy Asan authored June 10, 2008 jeremy committed June 11, 2008
4  actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -304,7 +304,7 @@ def country_options_for_select(selected = nil, priority_countries = nil)
304 304
       #
305 305
       # NOTE: Only the option tags are returned, you have to wrap this call in
306 306
       # a regular HTML select tag.
307  
-      def time_zone_options_for_select(selected = nil, priority_zones = nil, model = TimeZone)
  307
+      def time_zone_options_for_select(selected = nil, priority_zones = nil, model = ::ActiveSupport::TimeZone)
308 308
         zone_options = ""
309 309
 
310 310
         zones = model.all
@@ -417,7 +417,7 @@ def to_time_zone_select_tag(priority_zones, options, html_options)
417 417
         value = value(object)
418 418
         content_tag("select",
419 419
           add_options(
420  
-            time_zone_options_for_select(value || options[:default], priority_zones, options[:model] || TimeZone),
  420
+            time_zone_options_for_select(value || options[:default], priority_zones, options[:model] || ActiveSupport::TimeZone),
421 421
             options, value
422 422
           ), html_options
423 423
         )

0 notes on commit 011b5ed

Please sign in to comment.
Something went wrong with that request. Please try again.