Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fixes has many through counter-cache bug #8400
This commit fixes reported issue #7630 in which counter caches were not being updated properly when replacing has_many_through relationships.
and I did:
post = Post.create! tag = post.tags.create! tag.posts = 
then it was:
this pull makes it:
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I receive some errors when running all the tests but this could be because the master build is red at the moment (all errors are related to "deprecated_dynamic_methods_test.rb".
Just some cosmetic corrections: