calls all the sorting scopes the same way

This commit is contained in:
kikito
2015-09-04 14:17:59 +02:00
parent b6699932d1
commit 08c31c5985
4 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ class Moderation::CommentsController < Moderation::BaseController
private
def load_comments
@comments = Comment.accessible_by(current_ability, :hide).flagged.sorted_for_moderation.includes(:commentable)
@comments = Comment.accessible_by(current_ability, :hide).flagged.sort_for_moderation.includes(:commentable)
end
end