Skip to content

Commit

Permalink
Remove unused eager loading
Browse files Browse the repository at this point in the history
  • Loading branch information
rjlynch committed Oct 4, 2024
1 parent 4726b10 commit 630a344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/payroll_runs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create

# NOTE: Optimisation - preload payments, claims and eligibility
def show
@payroll_run = PayrollRun.where(id: params[:id]).includes({claims: [:eligibility]}, {payments: [{claims: [:eligibility]}]}).first
@payroll_run = PayrollRun.find(params[:id])
@pagy, @payments = pagy(@payroll_run.payments.ordered.includes(claims: [:eligibility]).includes(:topups))
end

Expand Down

0 comments on commit 630a344

Please sign in to comment.