evansagge/mongoid-rspec — pull request #64 by yairgo (2012-05-08 13:50:53+00:00)
Title: Adding in the ability to specify what methods a validation runs on.

Specifying what methods the validation runs on can be important.

I added this to the base validation because it can be specified on any validation.

I specifically made it so that the validation only fails if you add "on" to your validation. I don't think it is necessary to make people specify the "on" methods if they don't feel the need to.

If you would rather me implement this a different way let me know.