Sha256: b4f9425f1a94bac0579b0098a615744b263cd06a5460b0179df63e62868d43da
Contents?: true
Size: 1.4 KB
Versions: 7
Compression:
Stored size: 1.4 KB
Contents
# frozen_string_literal: true class StringInput < SimpleForm::Inputs::StringInput def input(wrapper_options = nil) "<section>#{super}</section>".html_safe end end class NumericInput < SimpleForm::Inputs::NumericInput def input(wrapper_options = nil) "<section>#{super}</section>".html_safe end end class CustomizedInput < SimpleForm::Inputs::StringInput def input(wrapper_options = nil) "<section>#{super}</section>".html_safe end def input_method :text_field end end class DeprecatedInput < SimpleForm::Inputs::StringInput def input "<section>#{super}</section>".html_safe end def input_method :text_field end end class CollectionSelectInput < SimpleForm::Inputs::CollectionSelectInput def input_html_classes super.push('chosen') end end class FileInput < SimpleForm::Inputs::FileInput def input_html_classes super.delete_if { |html_class| html_class == :file } super.push('file-upload') end end module CustomInputs class CustomizedInput < SimpleForm::Inputs::StringInput def input_html_classes super.push('customized-namespace-custom-input') end end class PasswordInput < SimpleForm::Inputs::PasswordInput def input_html_classes super.push('password-custom-input') end end class NumericInput < SimpleForm::Inputs::PasswordInput def input_html_classes super.push('numeric-custom-input') end end end
Version data entries
7 entries across 7 versions & 1 rubygems