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

How to display foreign_key changes #636

Open
louman opened this issue Aug 31, 2022 · 2 comments
Open

How to display foreign_key changes #636

louman opened this issue Aug 31, 2022 · 2 comments

Comments

@louman
Copy link

louman commented Aug 31, 2022

Hi there

I have the following model/association:

class Person
  has_one :primary_phone
end

When the user changes the primary_phone, the audited changes will log something like:

primary_phone_id:
- 321
- 123

When displaying the audit records to the users, it doesn't really make sense to display ID's as they don't mean anything to them. Ideally, we want to display the actual mobile number.

Is there an easy way to accomplish that? Some genius here thought that it would be a good idea to look up the number in real-time which messes up the history of the changes.

@collectiveidea collectiveidea deleted a comment Jan 26, 2024
@danielmorrison
Copy link
Member

Deleted unhelpful comment.

1 similar comment
@danielmorrison
Copy link
Member

Deleted unhelpful comment.

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

2 participants