11# frozen_string_literal: true
22
3+ # rubocop:disable Metrics/ModuleLength
34module ClientSideValidations
45 module ActionView
56 module Helpers
@@ -105,21 +106,21 @@ def file_field(method, options = {})
105106
106107 def date_select ( method , options = { } , html_options = { } )
107108 build_validation_options ( method , options )
108- options . delete ( :validate )
109+ html_options . delete ( :validate )
109110
110111 super ( method , options , html_options )
111112 end
112113
113114 def time_select ( method , options = { } , html_options = { } )
114115 build_validation_options ( method , options )
115- options . delete ( :validate )
116+ html_options . delete ( :validate )
116117
117118 super ( method , options , html_options )
118119 end
119120
120121 def datetime_select ( method , options = { } , html_options = { } )
121122 build_validation_options ( method , options )
122- options . delete ( :validate )
123+ html_options . delete ( :validate )
123124
124125 super ( method , options , html_options )
125126 end
@@ -142,3 +143,4 @@ def build_validation_options(method, options = {})
142143 end
143144 end
144145end
146+ # rubocop:enable Metrics/ModuleLength
0 commit comments