Rails Fails: Don’t sacrifice grepability for terseness of syntax
Rails 3 introduced a very pleasant syntax for using custom validation for your fields. All you had to do was to write a class called EmailValidator, and then declare:
validates :email, email…