代码报错

issues25489
daiao 5 years ago
parent 6f878376d0
commit 219ced5c2c

@ -10,7 +10,7 @@ class TrustieHacksController < ApplicationController
limit = params[:limit] || 16
hacks = @hackathon.trustie_hacks
@hackathon_users_count = hacks.sum(:hack_users_count)
@hackathon_users_count = hacks ? 0 : hacks.sum(:hack_users_count)
@hacks = hacks.page(page).per(limit)

Loading…
Cancel
Save