Sha256: 0071a403d3cdfa84444e35d50ccda3f2557ce183d45ce41e53bff9ac8e9a7bf7
Contents?: true
Size: 456 Bytes
Versions: 19
Compression:
Stored size: 456 Bytes
Contents
module SimpleForm module Inputs class StringInput < Base enable :placeholder, :maxlength, :pattern def input unless string? input_html_classes.unshift("string") input_html_options[:type] ||= input_type if html5? end add_size! @builder.text_field(attribute_name, input_html_options) end private def string? input_type == :string end end end end
Version data entries
19 entries across 19 versions & 4 rubygems