mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 20:26:01 +01:00
10 lines
383 B
Ruby
10 lines
383 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Comments::ReactionsController < ApplicationController
|
|
def index
|
|
comment = Comment.find(params[:id])
|
|
@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
|
|
end
|