class ActiveAdmin::Comments::Views::Comments
def build(resource)
def build(resource) if authorized?(ActiveAdmin::Auth::READ, ActiveAdmin::Comment) comments = active_admin_authorization.scope_collection(ActiveAdmin::Comment.find_for_resource_in_namespace(resource, active_admin_namespace.name).includes(:author).page(params[:page])) render("active_admin/shared/resource_comments", resource: resource, comments: comments, comment_form_url: comment_form_url) end end