fix pagination
This commit is contained in:
parent
bd25c4aa3d
commit
0a88010a83
|
@ -77,7 +77,7 @@ class Api::V1::BaseController < ApplicationController
|
|||
per_page = 20 if per_page < 1
|
||||
per_page = 100 if per_page >100
|
||||
page = params[:page].to_i
|
||||
page = 1 if page == 0
|
||||
page = nil if page == 0
|
||||
{:page => page, :per_page => per_page}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue