aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-07-01 04:31:48 -0700
committerJosé Valim <jose.valim@gmail.com>2011-07-01 04:31:48 -0700
commitb31ce90e99ca73ebbe529d9fef9d6ead3e2364a9 (patch)
tree26fc840443134cd070f7328652d6c82174130f17 /actionpack/lib/action_view
parentcb99c8593a8d5a92378a8167486d5148c1e2dff5 (diff)
parent0fdac01876c37c692e9107b6120e03aec692663d (diff)
downloadrails-b31ce90e99ca73ebbe529d9fef9d6ead3e2364a9.tar.gz
rails-b31ce90e99ca73ebbe529d9fef9d6ead3e2364a9.tar.bz2
rails-b31ce90e99ca73ebbe529d9fef9d6ead3e2364a9.zip
Merge pull request #1927 from bogdan/select_multiple_index
Fixed ActionView::FormOptionsHelper#select with :multiple => false
Diffstat (limited to 'actionpack/lib/action_view')
-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