Permalink
Browse files

allow rebaking all views based on available methods & templates

  • Loading branch information...
1 parent bbc2562 commit a87b6cdf9193aec933972cf485ba167cf382bc9c AD7six committed Jul 29, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/console/libs/tasks/view.php
@@ -179,16 +179,17 @@ function _methodsToBake() {
* @return void
**/
function all() {
- $actions = $this->scaffoldActions;
$this->Controller->interactive = false;
$tables = $this->Controller->listAll($this->connection, false);
+
$this->interactive = false;
foreach ($tables as $table) {
$model = $this->_modelName($table);
$this->controllerName = $this->_controllerName($model);
$this->controllerPath = Inflector::underscore($this->controllerName);
if (App::import('Model', $model)) {
$vars = $this->__loadController();
+ $actions = $this->_methodsToBake();
$this->bakeActions($actions, $vars);
}
}

0 comments on commit a87b6cd

Please sign in to comment.