class SimpleForm::Inputs::StringInput
Public Instance Methods
input(wrapper_options = nil)
click to toggle source
# File lib/simple_form/inputs/string_input.rb, line 7 def input(wrapper_options = nil) unless string? input_html_classes.unshift("string") input_html_options[:type] ||= input_type if html5? end merged_input_options = merge_wrapper_options(input_html_options, wrapper_options) @builder.text_field(attribute_name, merged_input_options) end
Private Instance Methods
string?()
click to toggle source
# File lib/simple_form/inputs/string_input.rb, line 20 def string? input_type == :string end