refactored post mod queue
This commit is contained in:
13
app/controllers/moderator/post/dashboards_controller.rb
Normal file
13
app/controllers/moderator/post/dashboards_controller.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
module Moderator
|
||||
module Post
|
||||
class DashboardsController < ApplicationController
|
||||
respond_to :html, :json
|
||||
|
||||
def show
|
||||
@search = ::Post.order("id asc").pending_or_flagged.available_for_moderation.search(:tag_match => params[:query])
|
||||
@posts = @search.paginate(params[:page])
|
||||
respond_with(@posts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user