Remove conditions on 2 User email validations
The User model had 2 validates declarations for secondary email attributes that had unnecessary conditions. This removes those conditions. At most they offered a negligible performance improvement, at the cost of adding complexity to secondary emails, which are security-sensitive and should be kept as simple as possible.
Showing
Please register or sign in to comment