Skip to content

Commit

Permalink
fix n+1 queries
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchud committed Nov 15, 2024
1 parent f15ffad commit 86c9b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/phases_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class PhasesController < ApplicationController
before_action :set_phase, except: [:index]

def index
@challenges = current_user.challenge_manager_challenges
@challenges = current_user.challenge_manager_challenges.includes([phases: [:evaluation_form, :submissions]])
end

def submissions
Expand Down

0 comments on commit 86c9b6f

Please sign in to comment.