From 5d8191a263c7439219b56ed5396ceebed981af2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 1 Feb 2012 20:12:52 -0200 Subject: Remove default class to collection_check_boxes and collection_radio_buttons 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 | 2 +- actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view/helpers/tags') 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 8f0f5c89fe..5f1e9ec026 100644 --- a/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb +++ b/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb @@ -21,7 +21,7 @@ module ActionView if block_given? yield builder else - builder.check_box + builder.label(:class => "collection_check_boxes") + builder.check_box + builder.label end end diff --git a/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb b/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb index d11f8632b9..8e7aeeed63 100644 --- a/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb +++ b/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb @@ -20,7 +20,7 @@ module ActionView if block_given? yield builder else - builder.radio_button + builder.label(:class => "collection_radio_buttons") + builder.radio_button + builder.label end end end -- cgit v1.2.3