implements /moderation/debates

This commit is contained in:
kikito
2015-08-22 23:20:55 +02:00
parent 47842cb1cc
commit 5eeaa7d189
8 changed files with 258 additions and 28 deletions

View File

@@ -26,17 +26,17 @@ class Moderation::CommentsController < Moderation::BaseController
private
def load_comments
@comments = Comment.accessible_by(current_ability, :hide).flagged_as_inappropiate.sorted_for_moderation.includes(:commentable)
end
def load_comments
@comments = Comment.accessible_by(current_ability, :hide).flagged_as_inappropiate.sorted_for_moderation.includes(:commentable)
end
def set_valid_filters
@valid_filters = %w{all pending_review reviewed}
end
def set_valid_filters
@valid_filters = %w{all pending_review reviewed}
end
def parse_filter
@filter = params[:filter]
@filter = 'all' unless @valid_filters.include?(@filter)
end
def parse_filter
@filter = params[:filter]
@filter = 'all' unless @valid_filters.include?(@filter)
end
end