Skip to content

Commit c7468a6

Browse files
committed
Alphabetize radio button method
1 parent f784bc9 commit c7468a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/client_side_validations/action_view/form_builder.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ def collection_select(method, collection, value_method, text_method, options = {
6262
super(method, collection, value_method, text_method, options, html_options)
6363
end
6464

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-
7165
def fields_for(record_name, record_object = nil, fields_options = {}, &block)
7266
if record_object.is_a?(Hash) && record_object.extractable_options?
7367
fields_options = record_object
@@ -90,6 +84,12 @@ def grouped_collection_select(method, collection, group_method, group_label_meth
9084
super(method, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options)
9185
end
9286

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+
9393
def select(method, choices = nil, options = {}, html_options = {}, &block)
9494
build_validation_options(method, html_options.merge(name: options[:name]))
9595
html_options.delete(:validate)

0 commit comments

Comments
 (0)