Skip to content

Commit

Permalink
Fix up behavior loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Mar 12, 2024
1 parent 4cb3611 commit 46c5add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/RatingComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function startup(EventInterface $event) {
$model = null;
}
if ($model && !$model->behaviors()->has('Ratable')) {
$model->behaviors()->load('Ratings.Ratable', $this->_config);
$model->behaviors()->load('Ratable', ['className' => 'Ratings.Ratable'] + $this->_config);
}
$this->Controller->viewBuilder()->setHelpers(['Ratings.Rating']);

Expand Down

0 comments on commit 46c5add

Please sign in to comment.