Skip to content

Commit

Permalink
modelKey is only used by scaffold.
Browse files Browse the repository at this point in the history
Since it only has one user confine it to there.
  • Loading branch information
markstory committed Dec 7, 2013
1 parent d633532 commit cb52f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/Controller/Scaffold.php
Expand Up @@ -119,7 +119,7 @@ public function __construct(Controller $controller, Request $request) {
$this->redirect = array('action' => 'index');

$this->modelClass = $controller->modelClass;
$this->modelKey = $controller->modelKey;
$this->modelKey = Inflector::underscore($this->modelClass);

if (!is_object($this->controller->{$this->modelClass})) {
throw new Error\MissingModelException($this->modelClass);
Expand Down

0 comments on commit cb52f9d

Please sign in to comment.