Module: AttributesHelper
- Defined in:
- app/helpers/attributes_helper.rb
Instance Method Summary collapse
Instance Method Details
#resolved_input_attributes(record, attr) ⇒ Hash
9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/attributes_helper.rb', line 9 def resolved_input_attributes(record, attr) { inputmode: validated_inputmode(record, attr), max: validated_max(record, attr), maxlength: validated_maxlength(record, attr), min: validated_min(record, attr), minlength: validated_minlength(record, attr), required: validated_required(record, attr), }.compact end |