You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
How can i do to remove attribute ?
i create temporary attributes like token to recover password. But after used this attribute i want to remove from my Document.
I see nothing in set method which remove attribute if nothing is passed or null value...
The text was updated successfully, but these errors were encountered:
The way I have dealt with this is the following. I'm thinking that this might also work on the core Model
exportdefaultclassUserextendsModel{configure(){this.privateFields=['password','created_at','updated_at'];}filter(){returnR.omit(this.privateFields,this.attributes);// R is an instance of ramda.js}toJSON(){returnthis.filter();}}
Let me dig around the source and see if I can create a PR if this sounds good.
How can i do to remove attribute ?
i create temporary attributes like token to recover password. But after used this attribute i want to remove from my Document.
I see nothing in set method which remove attribute if nothing is passed or null value...
The text was updated successfully, but these errors were encountered: