module SimpleForm::Components::HTML5
def has_required?
def has_required? # We need to check browser_validations because # some browsers are still checking required even # if novalidate was given. required_field? && SimpleForm.browser_validations end
def html5
def html5 @html5 = true input_html_options[:required] = true if has_required? nil end
def html5?
def html5? @html5 end
def initialize(*)
def initialize(*) @html5 = false end