def validate_each(record, attribute, value)
      unless value =~ EmailValidator.pattern
        record.errors.add(attribute, options[:message] || :invalid_email)
      end
    end
def validate_each(record, attribute, value)
      unless value =~ EmailValidator.pattern
        record.errors.add(attribute, options[:message] || :invalid_email)
      end
    end
Called automatically by ActiveModel validation..