From 5ee4a57a26a7863c7ff610dd3a46c04e0f53f7f7 Mon Sep 17 00:00:00 2001 From: sshaw Date: Sat, 4 May 2019 12:21:30 -0400 Subject: Update time_zone_options_for_select docs --- actionview/lib/action_view/helpers/form_options_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/helpers/form_options_helper.rb b/actionview/lib/action_view/helpers/form_options_helper.rb index a7747456a4..ad19426fff 100644 --- a/actionview/lib/action_view/helpers/form_options_helper.rb +++ b/actionview/lib/action_view/helpers/form_options_helper.rb @@ -566,9 +566,10 @@ module ActionView # an ActiveSupport::TimeZone. # # By default, +model+ is the ActiveSupport::TimeZone constant (which can - # be obtained in Active Record as a value object). The only requirement - # is that the +model+ parameter be an object that responds to +all+, and - # returns an array of objects that represent time zones. + # be obtained in Active Record as a value object). The +model+ parameter + # must respond to +all+ and return an array of objects that represent time + # zones; each object must respond to +name+. If a Regexp is given it will + # attempt to match the zones using the =~ operator. # # NOTE: Only the option tags are returned, you have to wrap this call in # a regular HTML select tag. -- cgit v1.2.3