Module: ActiveModel::Validations::ClassMethods

Defined in:
lib/validate_email.rb

Instance Method Summary collapse

Instance Method Details

#validates_email(*attr_names) ⇒ Object



30
31
32
# File 'lib/validate_email.rb', line 30

def validates_email(*attr_names)
  validates_with EmailValidator, _merge_attributes(attr_names)
end