Permalink
Browse files

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

  • Loading branch information...
1 parent 68ca131 commit 44590178e8a662abf234ca377afc05ce1e359f45 @goncalossilva committed Nov 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/episodes/_comments.html.erb
@@ -1,4 +1,4 @@
<div id="comments">
- <%= nested_comments @episode.comments.includes(:user).arrange(:order => "created_at asc") %>
+ <%= nested_comments @episode.comments.includes(:user, :episode).arrange(:order => "created_at asc") %>
<%= render "comments/form" %>
</div>

0 comments on commit 4459017

Please sign in to comment.