Remove outdated dependency comment (#39307)

This commit is contained in:
Matt Jankowski 2026-06-08 10:03:43 -04:00 committed by GitHub
parent 1bfdfcae7b
commit 37a9048cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,5 @@
# frozen_string_literal: true
# NOTE: I initially wrote this as `EmailValidator` but it ended up clashing
# with an indirect dependency of ours, `validate_email`, which, turns out,
# has the same approach as we do, but with an extra check disallowing
# single-label domains. Decided to not switch to `validate_email` because
# we do want to allow at least `localhost`.
class EmailAddressValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
value = value.strip