cakephp/cakephp — pull request #912 by thepeg (2012-10-25 09:43:03+00:00)
Title: Proposal: Custom Validation Objects

I've packed up a solution to use custom validation rules from outside the model class namespace.

I was inspired by a discussion and code-posting I found here (http://goo.gl/8u4FN) between MarkStory and saleh.

I changed `/lib/Cake/Model/CakeValidationRule.php` adding a code block to `process()` method to search for custom rules into external objects.

I find this solution mandatory to CakePHP letting developers to pack validation rules into their plugins!
I wrote a post to my blog to explain the problem and this solution: http://bit.ly/RXxw43

Bye,
MPeg.