Class: Field::Telephone
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
factory, #initialize, #inject_attributes, #presenter_class, #setup_container, #value
Constructor Details
This class inherits a constructor from Field::Base
Instance Method Details
#attribute ⇒ Object
12 13 14 |
# File 'lib/field/telephone.rb', line 12 def attribute ::Attribute::Telephone end |
#inject_validations ⇒ Object
6 7 8 9 10 |
# File 'lib/field/telephone.rb', line 6 def inject_validations @container.validates name, telephone: true super end |