Moved from 1000 per default per_page to 500 per default per_page for pagination.
This commit is contained in:
parent
8d71977e0f
commit
c8f329d9c0
3 changed files with 3 additions and 3 deletions
|
@ -460,7 +460,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def model_index_render(object, params)
|
||||
offset = 0
|
||||
per_page = 1000
|
||||
per_page = 500
|
||||
if params[:page] && params[:per_page]
|
||||
offset = (params[:page].to_i - 1) * params[:per_page].to_i
|
||||
limit = params[:per_page].to_i
|
||||
|
|
|
@ -48,7 +48,7 @@ curl http://localhost/api/v1/organizations -v -u #{login}:#{password}
|
|||
|
||||
def index
|
||||
offset = 0
|
||||
per_page = 1000
|
||||
per_page = 500
|
||||
|
||||
if params[:page] && params[:per_page]
|
||||
offset = (params[:page].to_i - 1) * params[:per_page].to_i
|
||||
|
|
|
@ -14,7 +14,7 @@ class UsersController < ApplicationController
|
|||
# @response_message 401 Invalid session.
|
||||
def index
|
||||
offset = 0
|
||||
per_page = 1000
|
||||
per_page = 500
|
||||
if params[:page] && params[:per_page]
|
||||
offset = (params[:page].to_i - 1) * params[:per_page].to_i
|
||||
per_page = params[:per_page].to_i
|
||||
|
|
Loading…
Reference in a new issue