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

Deleting TranslationVote record deletes Translation record #24

Open
euge opened this issue Apr 8, 2011 · 2 comments
Open

Deleting TranslationVote record deletes Translation record #24

euge opened this issue Apr 8, 2011 · 2 comments

Comments

@euge
Copy link

euge commented Apr 8, 2011

Heya,
Seems that deleting a TranslationVote record deletes it's associated Translation record via
:dependent => :destroy. This seems unexpected, is it intentional?

Thanks!

Euge

@berk
Copy link
Owner

berk commented Apr 8, 2011

If that's the case, it's a bug. Translation vote belongs to a translation and deleting translation should delete all votes for that translation, not the other way around.

Michael

On Apr 8, 2011, at 2:04 PM, [email protected] wrote:

Heya,
Seems that deleting a TranslationVote record deletes it's associated Translation record via
:dependent => :destroy. This seems unexpected, is it intentional?

Thanks!

Euge

Reply to this email directly or view it on GitHub:
#24

@stevecrozz
Copy link
Contributor

Cool, I was going to update the model and add a pull request, but it really is just removing the :dependent => destroy from the translation_vote model so I figured you probably don't need a whole pull request for that.

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

No branches or pull requests

3 participants