summaryrefslogtreecommitdiff
path: root/app/models/score.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/score.rb')
-rw-r--r--app/models/score.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/score.rb b/app/models/score.rb
index ccc795f..efbfee1 100644
--- a/app/models/score.rb
+++ b/app/models/score.rb
@@ -5,7 +5,7 @@ class Score < ApplicationRecord
validates :value, presence: true, inclusion: { in: 1..5 }
validates :session_id, presence: true
validates :tartiflette_id, uniqueness: {
- scope: [:scoring_criterium_id, :session_id],
+ scope: [ :scoring_criterium_id, :session_id ],
message: "has already been scored for this session and criterium."
}
end
Copyright 2019--2025 Marius PETER