adds pending filter to admin/comments
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
class Admin::CommentsController < Admin::BaseController
|
||||
has_filters %w{all with_confirmed_hide}
|
||||
has_filters %w{without_confirmed_hide all with_confirmed_hide}
|
||||
|
||||
before_action :load_comment, only: [:confirm_hide, :restore]
|
||||
|
||||
def index
|
||||
@comments = Comment.only_hidden.send(@current_filter).page(params[:page])
|
||||
@comments = Comment.only_hidden.send(@current_filter).order(hidden_at: :desc).page(params[:page])
|
||||
end
|
||||
|
||||
def confirm_hide
|
||||
|
||||
Reference in New Issue
Block a user