Permalink
Browse files

Dont include deprecated options for bake

  • Loading branch information...
dereuromark committed May 17, 2015
1 parent 4f3602a commit f742fa51fea2cdfa13d6548ecebf0d02fe746261
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/Console/Command/Task/ModelTask.php
@@ -383,6 +383,8 @@ public function initValidations() {
if (class_exists('Validation')) {
$options = get_class_methods('Validation');
}
$deprecatedOptions = array('notEmpty');
$options = array_diff($options, $deprecatedOptions);
sort($options);
$default = 1;
foreach ($options as $option) {

0 comments on commit f742fa5

Please sign in to comment.