From cff1e4fc3596943db63603c614eb08945130eeaa Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 1 Jan 2025 18:02:43 +0100 Subject: =?UTF-8?q?Rubocop=20=F0=9F=91=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/score.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/score.rb') 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 -- cgit v1.2.3