remove count

This commit is contained in:
Seth Call 2020-04-21 15:58:20 -05:00
parent 2756f763ba
commit 28f4d70360
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ module JamRuby
current_page = params[:next_page].nil? ? 1 : params[:next_page].to_i
next_page = current_page + 1
# will_paginate gem
query = query.paginate(:page => current_page, :per_page => limit)
# will_paginate gem0
query = query.limit(limit).offset((current_page - 1)* limit)
if params[:hash]
if query.length == 0 # no more results