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

Touch record on paranoia-destroy. Fixes #296 #377

Merged
merged 1 commit into from Feb 4, 2017

Conversation

rbr
Copy link
Contributor

@rbr rbr commented Jan 28, 2017

Touch record on destroy by leveraging the paranoia_destroy_attributes.
Applied the same to the restore-method as this eliminates the extra query.

As pointed out by @ccleung in #296, touch on destroy was broken in #245 / b2b8d19 (verified by running the included test against 2.1.3 and 2.1.4). Since update_columns is used now (reasons are pointed out in that commit), update-timestamps were no longer set by ActiveRecord.

(Recreation of PR #311, as PR-repo was gone so no new commits could be pushed.)

Touch record on destroy by leveraging the paranoia_destroy_attributes.
Applied the same to the restore-method as this eliminates the extra query.
@basiszwo
Copy link

basiszwo commented Feb 3, 2017

Any chance someone whose allowed to merge can do so? Would be awesome! 👍

@BenMorganIO BenMorganIO merged commit c9728e1 into rubysherpas:core Feb 4, 2017
@BenMorganIO
Copy link
Collaborator

@basiszwo done!

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

Successfully merging this pull request may close these issues.

None yet

3 participants