Rails counter_cache not updating correctly

前端 未结 5 688
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 00:00

Using Rails 3.1.3 and I\'m trying to figure out why our counter caches aren\'t being updated correctly when changing the parent record id via update_attributes.

         


        
5条回答
  •  广开言路
    2021-02-04 00:49

    A fix for this has been merged in to active record master

    https://github.com/rails/rails/issues/9722

提交回复
热议问题