Explicitly include episode to avoid hitting ActiveRecord's cache so much #49

wants to merge 1 commit into


None yet
2 participants

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment