From 007e92724ef1a59cd0aeebf733d5703ad0f4fc4e Mon Sep 17 00:00:00 2001
From: Maria Sauer <mcs22@inf.ufpr.br>
Date: Wed, 14 Aug 2024 11:25:35 -0300
Subject: [PATCH] issue #63: fix comments

---
 app/models/review.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/models/review.rb b/app/models/review.rb
index b1e47ebda..2a6034966 100644
--- a/app/models/review.rb
+++ b/app/models/review.rb
@@ -52,7 +52,9 @@ class Review < ApplicationRecord
 
   validates_presence_of :user, :reviewable
   validates_inclusion_of :reviewable_type, in: %w(LearningObject Collection), message: 'Only LearningObjects and Collections are reviewable.'
-  validates_uniqueness_of :user, scope: [:reviewable_id, :reviewable_type]
+  
+  # users should be able to comment multiple times
+  # validates_uniqueness_of :user, scope: [:reviewable_id, :reviewable_type]
 
   accepts_nested_attributes_for :review_ratings
 
-- 
GitLab