module ParsleySimpleForm::Concerns::TypeSensitiveConcern
Constants
- HTML_NATIVE_TYPES
- TYPES_CONSTRAINTS
- TYPE_MAP
Private Instance Methods
mapped_type()
click to toggle source
# File lib/parsley_simple_form/concerns/type_sensitive_concern.rb, line 15 def mapped_type if @mapped_type.nil? @mapped_type = type @mapped_type = TYPE_MAP[type] unless TYPE_MAP[type].nil? end @mapped_type end
type()
click to toggle source
# File lib/parsley_simple_form/concerns/type_sensitive_concern.rb, line 23 def type @type ||= @form_builder.find_input(@form_builder.attribute_name, @options, &@block).input_type.to_s end