class TaskCommentSerializer < ActiveModel::Serializer
  attributes :id, :comment, :created_at, :comment_by, :recipient_id, :is_new

  def comment_by
    object.user.name
  end
end

class TaskCommentSerializer < ActiveModel::Serializer
  attributes :id, :comment, :created_at, :comment_by, :is_new

  def comment_by
    object.user.name
  end
end

Remove recipient_id from comment serializer
QUALITY: Remove recipient_id from comment serializer
