Method: CaringForm::Field::Tel#input_properties
- Defined in:
- lib/caring_form/field/tel.rb
#input_properties(form, options = {}) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/caring_form/field/tel.rb', line 18 def input_properties(form, = {}) super.tap do |req| req[:input_html][:pattern] ||= regexp.source req[:input_html][:title] ||= req[:input_html][:type] ||= 'tel' end end |