aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorBogdan Gusiev <agresso@gmail.com>2011-06-30 16:27:01 +0300
committerBogdan Gusiev <agresso@gmail.com>2011-06-30 16:27:01 +0300
commit0fdac01876c37c692e9107b6120e03aec692663d (patch)
tree15f59afe22b24e9b4eed597721bd5aa10773b3b6 /actionpack/lib/action_view/helpers/form_helper.rb
parent539752a54cf3426c98e65136206df9f9553d9e73 (diff)
downloadrails-0fdac01876c37c692e9107b6120e03aec692663d.tar.gz
rails-0fdac01876c37c692e9107b6120e03aec692663d.tar.bz2
rails-0fdac01876c37c692e9107b6120e03aec692663d.zip
Fixed ActionView::FormOptionsHelper#select with :multiple => false
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 0ef2357368..41a503982a 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -1153,7 +1153,7 @@ module ActionView
options["name"] ||= tag_name_with_index(@auto_index)
options["id"] = options.fetch("id"){ tag_id_with_index(@auto_index) }
else
- options["name"] ||= tag_name + (options.has_key?('multiple') ? '[]' : '')
+ options["name"] ||= tag_name + (options['multiple'] ? '[]' : '')
options["id"] = options.fetch("id"){ tag_id }
end
end