adds pagination to admin lists

Ref: #80
This commit is contained in:
Juanjo Bazán
2015-08-19 14:08:22 +02:00
committed by Juanjo Bazán
parent a43c753ebb
commit fda8412ed3
8 changed files with 20 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ class Admin::OrganizationsController < Admin::BaseController
def index
@organizations = @organizations.send(@filter)
@organizations = @organizations.includes(:user).order(:name, 'users.email')
@organizations = @organizations.includes(:user).order(:name, 'users.email').page(params[:page])
end
def verify