From 1e632a7df6ade9ec584a8d4517d0df9f4b0d9951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 31 Jan 2012 16:55:44 -0200 Subject: Refactor render_collection method 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (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 d8f7a1fff6..ae27c4e6da 100644 --- a/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb +++ b/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb @@ -5,9 +5,7 @@ module ActionView delegate :check_box, :label, :to => :@template_object def render - rendered_collection = render_collection( - @method_name, @collection, @value_method, @text_method, @options, @html_options - ) do |value, text, default_html_options| + rendered_collection = render_collection do |value, text, default_html_options| default_html_options[:multiple] = true if block_given? -- cgit v1.2.3