Sha256: 54e16dd45fd21ec9f477cfe9490f5d8e8a2cb85ce44284469832421d0d8a0504
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
module SimpleFormWithClientValidation module Components module HTML5 def initialize(*) @html5 = false end def html5 @html5 = true input_html_options[:required] = true if has_required? nil end def html5? @html5 end def has_required? # We need to check browser_validations because # some browsers are still checking required even # if novalidate was given. required_field? && SimpleFormWithClientValidation.browser_validations end end end end
Version data entries
2 entries across 2 versions & 1 rubygems