berk/tr8n

Deleting TranslationVote record deletes Translation record

euge opened this issue · 2 comments

euge commented

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 commented

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, eugereply@reply.github.com 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

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.