Commit 809185b5

mo khan <mo@mokhan.ca>
2013-06-17 03:23:37
eager fetch photos
1 parent 9fed258
Changed files (1)
app
app/controllers/profiles_controller.rb
@@ -7,7 +7,7 @@ class ProfilesController < ApplicationController
 
   def show
     @user = User.find(params[:id])
-    @creations = @user.creations.includes(:user).page(params[:page]).per(18)
+    @creations = @user.creations.includes([:user, :photos]).page(params[:page]).per(18)
   end
 
   def favorites