Class: EmailField

Inherits:
StringField show all
Defined in:
lib/yodel/models/core/fields/email_field.rb

Constant Summary

Constants inherited from Field

Field::TYPES

Instance Attribute Summary

Attributes inherited from Field

#name, #options

Instance Method Summary collapse

Methods inherited from StringField

#from_json, #search_terms_set, #untypecast

Methods inherited from Field

#default_input_type, #display?, field_from_type, #from_json, from_options, #include_in_search_keywords?, #index?, #inherited?, #initialize, #method_missing, #numeric?, #required?, #searchable?, #strip_nil?, #to_json, #to_str, #typecast, #unique?, #untypecast

Constructor Details

This class inherits a constructor from Field

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Field

Instance Method Details

#validate(record, errors) ⇒ Object



3
4
5
6
# File 'lib/yodel/models/core/fields/email_field.rb', line 3

def validate(record, errors)
  EmailAddressValidation.validate(nil, self, name, record.get(name), record, errors)
  super
end