mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
TimeZone -> ActiveSupport::TimeZone. [#387 state:resolved]
This commit is contained in:
parent
634e462a0b
commit
3f594299c8
1 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ module ActionView
|
|||
#
|
||||
# NOTE: Only the option tags are returned, you have to wrap this call in
|
||||
# a regular HTML select tag.
|
||||
def time_zone_options_for_select(selected = nil, priority_zones = nil, model = TimeZone)
|
||||
def time_zone_options_for_select(selected = nil, priority_zones = nil, model = ::ActiveSupport::TimeZone)
|
||||
zone_options = ""
|
||||
|
||||
zones = model.all
|
||||
|
@ -417,7 +417,7 @@ module ActionView
|
|||
value = value(object)
|
||||
content_tag("select",
|
||||
add_options(
|
||||
time_zone_options_for_select(value || options[:default], priority_zones, options[:model] || TimeZone),
|
||||
time_zone_options_for_select(value || options[:default], priority_zones, options[:model] || ActiveSupport::TimeZone),
|
||||
options, value
|
||||
), html_options
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue