Skip to content
Snippets Groups Projects
Commit 824d8af8 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Merge branch 'issue/63-fix-comments' into 'develop'

issue #63: fix comments

Closes #63

See merge request rfhf19/cleanning-portalmec!57
parents 4e1f446d 007e9272
No related branches found
No related tags found
1 merge request!57issue #63: fix comments
Pipeline #38723 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment