Closed goncalossilva closed 3 years ago
Since @episode is loaded by cancan you can't eager load its comments up-front. You do this in the partial, but for some reason whenever you're accessing comment.episode it's hitting ActiveRecord's cache. This fixes it.
+1 Goncalo! I was in the audience today when you submitted this pull request during your talk. Well done.
Since @episode is loaded by cancan you can't eager load its comments up-front. You do this in the partial, but for some reason whenever you're accessing comment.episode it's hitting ActiveRecord's cache. This fixes it.