-
Notifications
You must be signed in to change notification settings - Fork 528
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
Fixes a problem of ambiguous table names when using only_deleted method and joining tables that have a scope on with_deleted
#346
Conversation
test/paranoia_test.rb
Outdated
@@ -5,6 +5,7 @@ | |||
|
|||
test_framework = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
test/paranoia_test.rb
Outdated
end | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
The commit for this doesn't lead to a Github profile and isn't owned by anyone. I'm a bit skeptical security wise. |
I'm currently in vacation, I will fix that next week, my git config was probably wrong at that time. |
70eb9d0
to
8023f10
Compare
It should be fixed now. (I've also fixed the useless new lines.) |
Cool. I'd love to get this in, but it looks like you need to rebase the latest changes from the |
a98eb8b
to
3b33272
Compare
The homepage is supposed to be where you can find the code. It is displayed on rubygems.org page. Currently it will redirect you back to the same page. Should point at this github repo.
Touch record on destroy by leveraging the paranoia_destroy_attributes. Applied the same to the restore-method as this eliminates the extra query.
…od and joining tables that have a scope on `with_deleted` Update homepage in gemspec The homepage is supposed to be where you can find the code. It is displayed on rubygems.org page. Currently it will redirect you back to the same page. Should point at this github repo. Update README to use proper version for Rails 5 Version 2.2.0 Ignore failures from all jruby's on travis Add explicit language about dependent: :destroy Update CHANGELOG.md update ruby and rails versions Use ActiveSupport.on_load to correctly re-open ActiveRecord::Base. rubysherpas#335 Touch record on paranoia-destroy. Fixes rubysherpas#296 Touch record on destroy by leveraging the paranoia_destroy_attributes. Applied the same to the restore-method as this eliminates the extra query.
b23db56
to
a756b20
Compare
I'm closing this PR since I've messed up with my rebase. Sorry about that. |
Fixes #26 and #27 (that are still present).
This bug would happen when overriding sentinel with
active
field