Method: CaringForm::Field::Tel#apply_to_model

Defined in:
lib/caring_form/field/tel.rb

#apply_to_model(klass) ⇒ Object



12
13
14
15
16
# File 'lib/caring_form/field/tel.rb', line 12

def apply_to_model(klass)
  super
  klass.send(:validates_format_of, name, :allow_blank => true,
             :with => regexp, :message => message, :multiline => true)
end