From 09b0ec6888ebdfbcdca69be2b77dd6d79789b85f Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 28 Oct 2023 04:31:35 +0200 Subject: [PATCH] Use proper reaction model class in `CommentController` --- app/controllers/comment_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb index 3b9c2e93..b3e12514 100644 --- a/app/controllers/comment_controller.rb +++ b/app/controllers/comment_controller.rb @@ -10,7 +10,7 @@ class CommentController < ApplicationController def show_reactions comment = Comment.find(params[:id]) - @reactions = Appendable::Reaction.where(parent_type: "Comment", parent: comment.id).includes([{ user: :profile }]) + @reactions = Reaction.where(parent_type: "Comment", parent: comment.id).includes([{ user: :profile }]) redirect_to answer_path(username: comment.answer.user.screen_name, id: comment.answer.id) unless turbo_frame_request? end