Override logChanges() function #1039
Unanswered
diptigajjar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
How can I override the logChanges function of the DetectsChanges traits? I've created new traits in myproject under App/traits folder and there I want to override logChanges function because I have encrypted values stored in my DB and the current logChanges stores the plaintext in activity log table. To resolve that I found below code which is working for me.
In model I've accessor and mutators for the encrypted fields.
Does anyone know how can I override this trait?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions