Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
Using Model::getDataSource() to get data source
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Jan 9, 2014
1 parent 4d0c221 commit 147dd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/StripeAppModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class StripeAppModel extends AppModel {
* @return string Error
*/
public function getStripeError() {
$ds = ConnectionManager::getDataSource($this->useDbConfig);
$ds = $this->getDataSource();
return $ds->lastError;
}

Expand Down

0 comments on commit 147dd42

Please sign in to comment.