remove count
This commit is contained in:
parent
2756f763ba
commit
28f4d70360
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue