Permalink
Browse files

fix: Model._fields be compatible with 0.x

  • Loading branch information...
XadillaX committed Oct 14, 2016
1 parent 0cb723f commit 694676e6bf3005ec44d2b64b44ce1105a60e1d1f
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/model.js
@@ -105,6 +105,13 @@ class ToshihikoModel extends EventEmitter {
debug(`"${this.name}" created.`, this);
}

/**
* be compatible with 0.x
*/
get _fields() {
return this.schema;
}

/**
* be compatible with 0.x
*/

0 comments on commit 694676e

Please sign in to comment.