Skip to content

Commit

Permalink
remove validate attribute and disable Metrics/ModuleLength to make Tr…
Browse files Browse the repository at this point in the history
…avis pass
  • Loading branch information
MichalRemis committed Apr 21, 2020
1 parent d2d3a02 commit 6ddafe4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/client_side_validations/action_view/form_builder.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/ModuleLength
module ClientSideValidations
module ActionView
module Helpers
Expand Down Expand Up @@ -105,21 +106,21 @@ def file_field(method, options = {})

def date_select(method, options = {}, html_options = {})
build_validation_options(method, options)
options.delete(:validate)
html_options.delete(:validate)

super(method, options, html_options)
end

def time_select(method, options = {}, html_options = {})
build_validation_options(method, options)
options.delete(:validate)
html_options.delete(:validate)

super(method, options, html_options)
end

def datetime_select(method, options = {}, html_options = {})
build_validation_options(method, options)
options.delete(:validate)
html_options.delete(:validate)

super(method, options, html_options)
end
Expand All @@ -142,3 +143,4 @@ def build_validation_options(method, options = {})
end
end
end
# rubocop:enable Metrics/ModuleLength

0 comments on commit 6ddafe4

Please sign in to comment.