@@ -43,7 +43,7 @@ def instantiate_builder(builder_class, item, value, text, html_options)
4343
4444 # Generate default options for collection helpers, such as :checked and
4545 # :disabled.
46- def default_html_options_for_collection ( item , value ) #:nodoc:
46+ def default_html_options_for_collection ( item , value )
4747 html_options = @html_options . dup
4848
4949 [ :checked , :selected , :disabled , :readonly ] . each do |option |
@@ -67,11 +67,11 @@ def default_html_options_for_collection(item, value) #:nodoc:
6767 html_options
6868 end
6969
70- def sanitize_attribute_name ( value ) #:nodoc:
70+ def sanitize_attribute_name ( value )
7171 "#{ sanitized_method_name } _#{ sanitized_value ( value ) } "
7272 end
7373
74- def render_collection #:nodoc:
74+ def render_collection
7575 @collection . map do |item |
7676 value = value_for_collection ( item , @value_method )
7777 text = value_for_collection ( item , @text_method )
@@ -82,7 +82,7 @@ def render_collection #:nodoc:
8282 end . join . html_safe
8383 end
8484
85- def render_collection_for ( builder_class , &block ) #:nodoc:
85+ def render_collection_for ( builder_class , &block )
8686 options = @options . stringify_keys
8787 rendered_collection = render_collection do |item , value , text , default_html_options |
8888 builder = instantiate_builder ( builder_class , item , value , text , default_html_options )
@@ -103,12 +103,12 @@ def render_collection_for(builder_class, &block) #:nodoc:
103103 end
104104 end
105105
106- def hidden_field #:nodoc:
106+ def hidden_field
107107 hidden_name = @html_options [ :name ] || hidden_field_name
108108 @template_object . hidden_field_tag ( hidden_name , "" , id : nil )
109109 end
110110
111- def hidden_field_name #:nodoc:
111+ def hidden_field_name
112112 "#{ tag_name ( false , @options [ :index ] ) } "
113113 end
114114 end
0 commit comments