mirror of https://gitee.com/bigwinds/arangodb
Foxx Model: Also update whitelisted attributes
This commit is contained in:
parent
8d8dfe5cd0
commit
d625e38acf
|
@ -218,6 +218,7 @@ _.extend(Model.prototype, {
|
||||||
} else {
|
} else {
|
||||||
this.attributes[attributeName] = value;
|
this.attributes[attributeName] = value;
|
||||||
}
|
}
|
||||||
|
this.whitelistedAttributes = whitelistProperties(this.attributes, this.constructor.attributes);
|
||||||
},
|
},
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue