Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem is not saving auditable_id, auditable_type for User model #710

Open
augustosamame opened this issue May 16, 2024 · 0 comments
Open

Gem is not saving auditable_id, auditable_type for User model #710

augustosamame opened this issue May 16, 2024 · 0 comments

Comments

@augustosamame
Copy link

Gem works fine for all models, except for User model.
I have added audited to User model and others.

For User model, upon doing any edits through my custom admin to user records, both the auditable_id and auditable_type are nil.
The user_id for the audit record corresponds to the User record being modified, not the current_user.

I do have a standard current_user method through Devise that returns the user object.
All other audited models work fine.

This is vanilla audited installation. The only thing extra I did was create an empty Audit model in order to use console to see Audit records.

Audited version: 5.6.0
Rails version: 7.1.2
Devise version: 4.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant