Skip to content

Commit

Permalink
remove MODELS constant
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed May 15, 2011
1 parent af505df commit 62d66bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 10 additions & 2 deletions lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -30,12 +30,12 @@
class ModelTask extends BakeTask {

/**
* path to MODELS directory
* path to Model directory
*
* @var string
* @access public
*/
public $path = MODELS;
public $path = null;

/**
* tasks
Expand Down Expand Up @@ -69,6 +69,14 @@ class ModelTask extends BakeTask {
*/
protected $_validations = array();

/**
* Override initialize
*
*/
public function initialize() {
$this->path = App::path('Model');
}

/**
* Execution method always used for tasks
*
Expand Down
5 changes: 0 additions & 5 deletions lib/Cake/bootstrap.php
Expand Up @@ -48,11 +48,6 @@
define('APP', ROOT.DS.APP_DIR.DS);
}

/**
* Path to the application's models directory.
*/
define('MODELS', APP.'Model'.DS);

/**
* Path to model behaviors directory.
*/
Expand Down

0 comments on commit 62d66bc

Please sign in to comment.