@@ -62,12 +62,6 @@ def collection_select(method, collection, value_method, text_method, options = {
62
62
super ( method , collection , value_method , text_method , options , html_options )
63
63
end
64
64
65
- def radio_button ( method , tag_value , options = { } )
66
- build_validation_options ( method , options )
67
- options . delete ( :validate )
68
- super ( method , tag_value , options )
69
- end
70
-
71
65
def fields_for ( record_name , record_object = nil , fields_options = { } , &block )
72
66
if record_object . is_a? ( Hash ) && record_object . extractable_options?
73
67
fields_options = record_object
@@ -90,6 +84,12 @@ def grouped_collection_select(method, collection, group_method, group_label_meth
90
84
super ( method , collection , group_method , group_label_method , option_key_method , option_value_method , options , html_options )
91
85
end
92
86
87
+ def radio_button ( method , tag_value , options = { } )
88
+ build_validation_options ( method , options )
89
+ options . delete ( :validate )
90
+ super ( method , tag_value , options )
91
+ end
92
+
93
93
def select ( method , choices = nil , options = { } , html_options = { } , &block )
94
94
build_validation_options ( method , html_options . merge ( name : options [ :name ] ) )
95
95
html_options . delete ( :validate )
0 commit comments