Skip to content
Snippets Groups Projects
Commit 2f9acf51 authored by mcs22's avatar mcs22
Browse files

issue #63: fix comments

parent 4e1f446d
Branches
No related tags found
No related merge requests found
Pipeline #38698 failed
...@@ -52,7 +52,7 @@ class Review < ApplicationRecord ...@@ -52,7 +52,7 @@ class Review < ApplicationRecord
validates_presence_of :user, :reviewable validates_presence_of :user, :reviewable
validates_inclusion_of :reviewable_type, in: %w(LearningObject Collection), message: 'Only LearningObjects and Collections are 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] # validates_uniqueness_of :user, scope: [:reviewable_id, :reviewable_type]
accepts_nested_attributes_for :review_ratings accepts_nested_attributes_for :review_ratings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment