Fixed association cache issue with ActiveRecord > 3.13