From d625e38acf5310041ab30c0b65a1e903af09a358 Mon Sep 17 00:00:00 2001 From: Lucas Dohmen Date: Mon, 23 Jun 2014 19:02:43 +0200 Subject: [PATCH] Foxx Model: Also update whitelisted attributes --- js/server/modules/org/arangodb/foxx/model.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/server/modules/org/arangodb/foxx/model.js b/js/server/modules/org/arangodb/foxx/model.js index d13d5135ed..28fa7203b2 100644 --- a/js/server/modules/org/arangodb/foxx/model.js +++ b/js/server/modules/org/arangodb/foxx/model.js @@ -218,6 +218,7 @@ _.extend(Model.prototype, { } else { this.attributes[attributeName] = value; } + this.whitelistedAttributes = whitelistProperties(this.attributes, this.constructor.attributes); }, ////////////////////////////////////////////////////////////////////////////////