Permalink
Browse files

Updating model to reflect changes in Validation.

  • Loading branch information...
1 parent 1613b84 commit 7d4bc20fbd00a0b35c92bed5bfcef505a5593dc6 @markstory markstory committed Oct 12, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 cake/console/libs/tasks/model.php
@@ -350,7 +350,9 @@ function doValidation(&$model) {
function initValidations() {
$options = $choices = array();
if (class_exists('Validation')) {
+ $parent = get_class_methods(get_parent_class('Validation'));
$options = get_class_methods('Validation');
+ $options = array_diff($options, $parent);
}
sort($options);
$default = 1;

0 comments on commit 7d4bc20

Please sign in to comment.