Skip to content
Permalink
Browse files

More predictable default for CakeShema class naming.

Instead of using the `APP_DIR` constant, which may change between developer installations of a project and cause issues loading Schemas generated elsewhere, use a fixed string, 'App'.

This is related to CakeDC/migrations#184 and should fully resolve #4174.
  • Loading branch information...
beporter committed Aug 11, 2014
1 parent f93029b commit be9be48c46aa4ad588baa495823fda1514ba2512
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/CakeSchema.php
@@ -86,7 +86,7 @@ public function __construct($options = array()) {
}
if (strtolower($this->name) === 'cake') {
$this->name = Inflector::camelize(Inflector::slug(Configure::read('App.dir')));
$this->name = 'App';
}
if (empty($options['path'])) {

0 comments on commit be9be48

Please sign in to comment.
You can’t perform that action at this time.