diff --git a/system/classes/Kohana/Core.php b/system/classes/Kohana/Core.php index 081d4bb..791c114 100644 --- a/system/classes/Kohana/Core.php +++ b/system/classes/Kohana/Core.php @@ -514,6 +514,17 @@ class Kohana_Core { return TRUE; } + // Enable finding a default Model + if ($path = Kohana::find_file($directory,'Model/DEFAULT')) { + // Load the class file + require $path; + + Model_DEFAULT::_default($class); + + // Class has been found + return TRUE; + } + // Class is not in the filesystem return FALSE; }