Please sign in to comment.
polymorphic belongs_to association with touch: true updates old recor…
…d correctly Example: Given you have a comments model with a polymorphic commentable association (e.g. books and songs) with the touch option set. Every time you update a comment its commentable should be touched. This was working when you changed attributes on the comment or when you moved the comment from one book to another. However, it was not working when moving a comment from a book to a song. This is now fixed.
- Loading branch information...
Showing with 63 additions and 17 deletions.