From d94bca91345cb0a1d1bd48b3eed0ea373a4d9a48 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Thu, 15 Aug 2013 16:59:16 -0700 Subject: [PATCH] Make sure User.setup calls Model.setup to support shared ctor --- lib/models/user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/models/user.js b/lib/models/user.js index 01f6f36f..f3bd91f2 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -251,6 +251,8 @@ User.confirm = function (uid, token, redirect, fn) { */ User.setup = function () { + // We need to call the base class's setup method + Model.setup.call(this); var UserModel = this; UserModel.setter.password = function (plain) {