From c3a33df0cec1997cf1b29d1da5471dc0f5ad9aa4 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 18 Aug 2014 21:44:28 -0700 Subject: [PATCH] Make sure AccessToken extends from PersistedModel --- lib/models/access-token.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/models/access-token.js b/lib/models/access-token.js index 6917a3b4..85a9f5f7 100644 --- a/lib/models/access-token.js +++ b/lib/models/access-token.js @@ -2,8 +2,7 @@ * Module Dependencies. */ -var Model = require('../loopback').Model - , loopback = require('../loopback') +var loopback = require('../loopback') , assert = require('assert') , crypto = require('crypto') , uid = require('uid2') @@ -37,10 +36,11 @@ var properties = { * @property {Date} created When the token was created * * @class - * @inherits {Model} + * @inherits {PersistedModel} */ -var AccessToken = module.exports = Model.extend('AccessToken', properties, { +var AccessToken = module.exports = + loopback.PersistedModel.extend('AccessToken', properties, { acls: [ { principalType: ACL.ROLE,