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

@@ -1,7 +1,7 @@
class Admin::CommentsController < Admin::BaseController
def index
@comments = Comment.only_hidden
@comments = Comment.only_hidden.page(params[:page])
end
def restore