From 36cb7150fd4087c22b61f536431c149d4c545586 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Wed, 1 Feb 2012 16:44:35 -0200 Subject: Extract common collection helpers to a module to avoid too much inheritance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Carlos Antonio da Silva + Rafael Mendonça França] --- actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb') diff --git a/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb b/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb index 92312c5081..8f0f5c89fe 100644 --- a/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb +++ b/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb @@ -1,7 +1,11 @@ +require 'action_view/helpers/tags/collection_helpers' + module ActionView module Helpers module Tags - class CollectionCheckBoxes < CollectionRadioButtons + class CollectionCheckBoxes < Base + include CollectionHelpers + class CheckBoxBuilder < Builder def check_box(extra_html_options={}) html_options = extra_html_options.merge(@input_html_options) -- cgit v1.2.3