Add support for audit_attributes#732
Add support for audit_attributes#732nazamoresco wants to merge 3 commits intocollectiveidea:mainfrom
Conversation
|
This is interesting. Before merging, it would need:
At first glance, I don't like the use of |
…/add-audit-attributes
|
Hey Daniel, Thanks for taking a look! I think there might be a slight misinterpretation of what No migration is needed from the gem side because the custom columns are expected to be added by the users based on their specific requirements. Regarding the use of an explicit key in I’ve updated the |
|
Having the same issue in our project, this seems like a no-brainer. Our use-case is the need to store an array of associated record ids (rather than using the associated_with, as that tracks too many audits). |
|
I also think it would be useful |
|
Hey @danielmorrison, I have again encountered a use case where this feature would be useful, could I get your opinion on the feasibility of this feature ever being introduced to the gem? I'm here to answer any questions you might have, thanks! |
In the current project I'm working on, we introduced a new column to the audit class but struggled to find an elegant way to set it dynamically. A feature similar to
audit_commentbut more flexible would provide a more convenient solution.This PR introduces the
audit_attributesfeature to the gem, offering a flexible approach to include additional custom attributes during the auditing process. The following changes have been made: