Browse files

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

  • Loading branch information...
1 parent f0628d1 commit 2af5318e7a829a976caf852ca71fa9e7a0bafd0b @markstory markstory committed Nov 9, 2009
Showing with 2 additions and 2 deletions.
  1. 0 app/tmp/cache/views/empty
  2. +2 −2 cake/console/libs/tasks/model.php
View
0 app/tmp/cache/views/empty
No changes.
View
4 cake/console/libs/tasks/model.php
@@ -80,6 +80,8 @@ class ModelTask extends Shell {
* @access public
*/
function execute() {
+ App::import('Model', 'Model', false);
+
if (empty($this->args)) {
$this->__interactive();
}
@@ -165,8 +167,6 @@ function inOptions($options, $prompt = null, $default = null) {
* @access private
*/
function __interactive() {
- App::import('Model', 'Model', false);
-
$this->hr();
$this->out(sprintf("Bake Model\nPath: %s", $this->path));
$this->hr();

0 comments on commit 2af5318

Please sign in to comment.