diff --git a/app/models/review.rb b/app/models/review.rb index b1e47ebdabf016803d75eed313317e7cc17314d9..2a60349662081e6e1f01e83a4f36f7b5c5f1eb52 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