fix for dashboard

This commit is contained in:
albert
2011-09-15 18:06:42 -04:00
parent 4d1d45d70e
commit c8cb217e6c
3 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ module Moderator
module Post
class DashboardsController < ApplicationController
respond_to :html, :json
before_filter :janitor_only
def show
@search = ::Post.order("id asc").pending_or_flagged.available_for_moderation.search(:tag_match => params[:query])