diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-31 00:40:33 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-31 00:40:37 -0300 |
commit | 7e583b73c4e7ddad2241b2ca05b3c16a5fdf0cc6 (patch) | |
tree | c8d4aef0089a3098507ad34ac5ff3452e4eadf9a /actionview/lib/action_view/helpers/tags/collection_check_boxes.rb | |
parent | b238dd73410bafe2b710cd33b74c54263ba85171 (diff) | |
download | rails-7e583b73c4e7ddad2241b2ca05b3c16a5fdf0cc6.tar.gz rails-7e583b73c4e7ddad2241b2ca05b3c16a5fdf0cc6.tar.bz2 rails-7e583b73c4e7ddad2241b2ca05b3c16a5fdf0cc6.zip |
Fix collection_radio_buttons' hidden_field name and make it appear before the radios
Fixes #22773
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/collection_check_boxes.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/collection_check_boxes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb b/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb index 3256d44e18..3dda47a458 100644 --- a/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb +++ b/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb @@ -23,6 +23,10 @@ module ActionView def render_component(builder) builder.check_box + builder.label end + + def hidden_field_name #:nodoc: + "#{super}[]" + end end end end |