How to build reusable validations in Ruby on Rails

Posted on

You can build some super reusable validations by extending the ActiveModel::EachValidator class. Here is a very quick run through on how to do that :)

Sources