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

Add API to nullify log_data #108

Closed
palkan opened this issue Jan 24, 2019 · 3 comments
Closed

Add API to nullify log_data #108

palkan opened this issue Jan 24, 2019 · 3 comments

Comments

@palkan
Copy link
Owner

palkan commented Jan 24, 2019

Sometimes it might be necessary to reset the history for a record (or records) (e.g. with some GDPR-related stuff).

Let's add an API to do that. Something like this:

# for single record
record.reset_log_data #=> which is, probably, equal to Logidze.without_logging { record.update_column(:log_data, nil) }

# for relation
User.where(...).reset_log_data #=> Logidze.without_logging { relation.update_all(log_data: nil) }
@Arkweid
Copy link
Contributor

Arkweid commented Jan 24, 2019

Take this one

@Arkweid
Copy link
Contributor

Arkweid commented Jan 25, 2019

@palkan opened: #110

@palkan
Copy link
Owner Author

palkan commented Feb 1, 2019

Closed by #110

@palkan palkan closed this as completed Feb 1, 2019
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

2 participants