From d10f104ad3befbb5675e4d26ceadc11b2cfb3c6c Mon Sep 17 00:00:00 2001 From: Douglas Waltman II Date: Tue, 26 Jul 2011 10:25:37 -0700 Subject: [PATCH] Added logic to allow for collections to receive a false value on item_collection_tag --- lib/simple_form/action_view_extensions/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simple_form/action_view_extensions/builder.rb b/lib/simple_form/action_view_extensions/builder.rb index 418d6f1d..4f1a85b3 100644 --- a/lib/simple_form/action_view_extensions/builder.rb +++ b/lib/simple_form/action_view_extensions/builder.rb @@ -135,7 +135,7 @@ module SimpleForm def render_collection(attribute, collection, value_method, text_method, options={}, html_options={}) #:nodoc: collection_wrapper_tag = options[:collection_wrapper_tag] || SimpleForm.collection_wrapper_tag - item_wrapper_tag = options[:item_wrapper_tag] || SimpleForm.item_wrapper_tag + item_wrapper_tag = (defined? options[:item_wrapper_tag]) ? options[:item_wrapper_tag] : SimpleForm.item_wrapper_tag rendered_collection = collection.map do |item| value = value_for_collection(item, value_method)