|
|
|
@ -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)
|
|
|
|
|
|
|
|
|
|