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

GlobalID support for metadata #233

Open
palkan opened this issue Mar 29, 2023 · 0 comments
Open

GlobalID support for metadata #233

palkan opened this issue Mar 29, 2023 · 0 comments

Comments

@palkan
Copy link
Owner

palkan commented Mar 29, 2023

From #224

Logidze.with_responsible(user) do
  product.save
end

product.reload.log_data.responsible_id #=> "gid://app/User/42"
product.log_data.responsible #=> user

Logidze.with_responsible(device) do
  product.update(name: "New name")
end

product.reload.log_data.responsible_id #=> "gid://app/Device/24" 
product.log_data.responsible #=> device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant