1
1
# frozen_string_literal: true
2
2
3
+ # rubocop:disable Metrics/ModuleLength
3
4
module ClientSideValidations
4
5
module ActionView
5
6
module Helpers
@@ -105,21 +106,21 @@ def file_field(method, options = {})
105
106
106
107
def date_select ( method , options = { } , html_options = { } )
107
108
build_validation_options ( method , options )
108
- options . delete ( :validate )
109
+ html_options . delete ( :validate )
109
110
110
111
super ( method , options , html_options )
111
112
end
112
113
113
114
def time_select ( method , options = { } , html_options = { } )
114
115
build_validation_options ( method , options )
115
- options . delete ( :validate )
116
+ html_options . delete ( :validate )
116
117
117
118
super ( method , options , html_options )
118
119
end
119
120
120
121
def datetime_select ( method , options = { } , html_options = { } )
121
122
build_validation_options ( method , options )
122
- options . delete ( :validate )
123
+ html_options . delete ( :validate )
123
124
124
125
super ( method , options , html_options )
125
126
end
@@ -142,3 +143,4 @@ def build_validation_options(method, options = {})
142
143
end
143
144
end
144
145
end
146
+ # rubocop:enable Metrics/ModuleLength
0 commit comments