Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Commit

Permalink
'find' is deprecated and replqced by 'findRecord'. The 'find' method …
Browse files Browse the repository at this point in the history
…is now a proxy to the new 'findRecord' method for backward compatibility
  • Loading branch information
OleRoel authored and jkleinsc committed Jul 29, 2015
1 parent d7e6b6c commit 44167fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/adapters/pouch.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ export default DS.RESTAdapter.extend({
* for deprecated methods.
*/
find: function (store, type, id) {
return this.findRecord(store, type, id);
},

findRecord: function (store, type, id) {
this._init(store, type);
var recordTypeName = this.getRecordTypeName(type);
return this.db.rel.find(recordTypeName, id).then(function (payload) {
Expand Down

0 comments on commit 44167fe

Please sign in to comment.