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

Fix after_commit for Rails 6 #482

Merged
merged 2 commits into from
Jun 29, 2020

Conversation

hashwin
Copy link
Contributor

@hashwin hashwin commented Nov 28, 2019

Trigger after_commit on destroy to work with rails 6

This addresses #478

@williamweckl
Copy link

Can this be merged?

@williamweckl
Copy link

Still waiting for it... Is the only thing that prevents me to updating to Rails 6. :(

@qnighy
Copy link

qnighy commented May 15, 2020

@jhawthorn @sevenseacat Can one of the maintainers look at this? Thanks in advance!

@zeitnot
Copy link

zeitnot commented Jun 28, 2020

@jhawthorn @sevenseacat +1

@sevenseacat sevenseacat merged commit ed86d01 into rubysherpas:core Jun 29, 2020
@jasonswett
Copy link

FWIW:

For whatever reason, when I upgraded to Paranoia 2.4.2, this change didn't come along with it. But when I put gem 'paranoia', git: 'https://github.com/rubysherpas/paranoia', ref: '00a70579898f371975db907ea8e2ba3e8d737650' in my Gemfile, the change did come through, and it fixed the bug.

@sevenseacat
Copy link
Member

There's been no release since this patch was merged - I don't have access to do that on Rubygems, unfortunately.

@williamweckl
Copy link

@sevenseacat who has this access to make this happen?

@sevenseacat
Copy link
Member

@jhawthorn can you make a release with these changes?

@smridge
Copy link

smridge commented Jun 22, 2022

This change was included in a patch yet it is actually BREAKING if you are on Rails 5. If I'm putting it together correctly, when you update to Rails 6, the gem version this was included in needs to be updated at the same time?

@mathieujobin
Copy link
Collaborator

hmm, according to the test suite, all tests pass with 5.2 and 5.1
https://github.com/rubysherpas/paranoia/actions/runs/2146476944

if there is a bug, we don't know about it.
unless someone provide a PR with a fix, I'd be more moving toward removing support for 5.x
and leaving a note as the best version to use with 5.x if any problem is encountered.

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

8 participants