Make sure AccessToken extends from PersistedModel

This commit is contained in:
Raymond Feng 2014-08-18 21:44:28 -07:00
parent e35bc9ed5f
commit c3a33df0ce
1 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,7 @@
* Module Dependencies. * Module Dependencies.
*/ */
var Model = require('../loopback').Model var loopback = require('../loopback')
, loopback = require('../loopback')
, assert = require('assert') , assert = require('assert')
, crypto = require('crypto') , crypto = require('crypto')
, uid = require('uid2') , uid = require('uid2')
@ -37,10 +36,11 @@ var properties = {
* @property {Date} created When the token was created * @property {Date} created When the token was created
* *
* @class * @class
* @inherits {Model} * @inherits {PersistedModel}
*/ */
var AccessToken = module.exports = Model.extend('AccessToken', properties, { var AccessToken = module.exports =
loopback.PersistedModel.extend('AccessToken', properties, {
acls: [ acls: [
{ {
principalType: ACL.ROLE, principalType: ACL.ROLE,