diff options
| author | mo khan <mo@mokhan.ca> | 2014-09-08 18:18:07 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-09-08 18:18:07 -0600 |
| commit | d189b097603d56d7e93862e71938ee655b01c02d (patch) | |
| tree | 138b085a676df7293a7532125c26e9803ed5ca45 /app/controllers/tutorials_controller.rb | |
| parent | 9d287bd25c284ca698a9c61cb68cd3e3f982f7d6 (diff) | |
fix n+1s
Diffstat (limited to 'app/controllers/tutorials_controller.rb')
| -rw-r--r-- | app/controllers/tutorials_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb index 2c7a9a2f..ff19d969 100644 --- a/app/controllers/tutorials_controller.rb +++ b/app/controllers/tutorials_controller.rb @@ -1,6 +1,6 @@ class TutorialsController < ApplicationController def index - @tutorials = Tutorial.includes(:tags).page(params[:page]).per(15) + @tutorials = Tutorial.includes(:user).page(params[:page]).per(12) end def show |
