aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-11-25 15:08:19 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-11-25 15:08:19 -0500
commitaec84648818ee677b8ef72b958579c96bf25ab9e (patch)
treec99eda56c02b101d303d40532d9a26862f158218 /actionview/lib/action_view/helpers/tags/collection_check_boxes.rb
parentaee1a2802f03d864edc1b856e6461ef8b80a78b5 (diff)
downloadrails-aec84648818ee677b8ef72b958579c96bf25ab9e.tar.gz
rails-aec84648818ee677b8ef72b958579c96bf25ab9e.tar.bz2
rails-aec84648818ee677b8ef72b958579c96bf25ab9e.zip
Make sure that form_with_generates_ids only affects form_with
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.rb1
1 files changed, 1 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 021a6c0c0c..455442178e 100644
--- a/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb
+++ b/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb
@@ -12,6 +12,7 @@ module ActionView
def check_box(extra_html_options = {})
html_options = extra_html_options.merge(@input_html_options)
html_options[:multiple] = true
+ html_options[:skip_default_ids] = false
@template_object.check_box(@object_name, @method_name, html_options, @value, nil)
end
end