rails/rails — pull request #11214 by robin850 (2013-07-01 12:13:17+00:00)
Title: Add a generator for ActiveModel validators

Hello,

This pull request adds a new command to generate ActiveModel validators. It will simply generate a file under `app/validators` and also a test file (under `test/validators`). It is also possible to pass a `--each` option to generate an `EachValidator` instead of a simple validator.

Like any other generator, this command allows namespacing.

Have a nice day.