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.
*/
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,