diff options
author | sshaw <skye.shaw@gmail.com> | 2019-05-04 12:21:30 -0400 |
---|---|---|
committer | sshaw <skye.shaw@gmail.com> | 2019-05-04 20:17:35 -0400 |
commit | 5ee4a57a26a7863c7ff610dd3a46c04e0f53f7f7 (patch) | |
tree | 3a9b7f6f626cb120afb5c93ed509bb944f9b0e45 /actionview | |
parent | ac1ba44f8d46ebbbe6889629d263e5690631f6a1 (diff) | |
download | rails-5ee4a57a26a7863c7ff610dd3a46c04e0f53f7f7.tar.gz rails-5ee4a57a26a7863c7ff610dd3a46c04e0f53f7f7.tar.bz2 rails-5ee4a57a26a7863c7ff610dd3a46c04e0f53f7f7.zip |
Update time_zone_options_for_select docs
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/form_options_helper.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 <code>=~<code> operator. # # NOTE: Only the option tags are returned, you have to wrap this call in # a regular HTML select tag. |