Moving import in ModelTask to fix issue running bake model all.

This commit is contained in:
mark_story 2009-11-09 23:54:59 -05:00
parent f0628d100b
commit 2af5318e7a
2 changed files with 2 additions and 2 deletions

View file

View file

@ -80,6 +80,8 @@ class ModelTask extends Shell {
* @access public * @access public
*/ */
function execute() { function execute() {
App::import('Model', 'Model', false);
if (empty($this->args)) { if (empty($this->args)) {
$this->__interactive(); $this->__interactive();
} }
@ -165,8 +167,6 @@ class ModelTask extends Shell {
* @access private * @access private
*/ */
function __interactive() { function __interactive() {
App::import('Model', 'Model', false);
$this->hr(); $this->hr();
$this->out(sprintf("Bake Model\nPath: %s", $this->path)); $this->out(sprintf("Bake Model\nPath: %s", $this->path));
$this->hr(); $this->hr();