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

Has one bug #168

Closed
wants to merge 3 commits into from
Closed

Has one bug #168

wants to merge 3 commits into from

Conversation

shreyas123
Copy link
Contributor

When the model of has_one association of the paranoid model is not a paranoid then it throws error because of with_deleted called on the association.

Added a check of paranoid? before executing the query to restore has_one association.

@radar
Copy link
Collaborator

radar commented Oct 11, 2014

Could you please add a regression test for this issue too?

@shreyas123
Copy link
Contributor Author

@radar done

jhawthorn pushed a commit to jhawthorn/paranoia that referenced this pull request Jan 19, 2015
jhawthorn pushed a commit to jhawthorn/paranoia that referenced this pull request Jan 19, 2015
@jhawthorn
Copy link
Collaborator

This test case has been merged and is now passing. Thanks 🎉

@jhawthorn jhawthorn closed this Jan 22, 2015
@jhawthorn jhawthorn added this to the 2.0.5 milestone Jan 22, 2015
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