post approvals: add index page + search options (fix #3579).

This commit is contained in:
evazion
2018-05-05 13:07:49 -05:00
parent 181a906766
commit 7c1d5e25fb
7 changed files with 105 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
class PostApprovalsController < ApplicationController
respond_to :html, :xml, :json
def index
@post_approvals = PostApproval.includes(:post, :user).search(search_params).paginate(params[:page], limit: params[:limit])
respond_with(@post_approvals)
end
end