summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/scores_controller.rb2
-rw-r--r--app/models/score.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/scores_controller.rb b/app/controllers/scores_controller.rb
index 8754b91..7c46165 100644
--- a/app/controllers/scores_controller.rb
+++ b/app/controllers/scores_controller.rb
@@ -1,6 +1,6 @@
class ScoresController < ApplicationController
allow_unauthenticated_access
- before_action :set_tartiflette, only: [:new, :create, :edit_all, :update_all]
+ before_action :set_tartiflette, only: [ :new, :create, :edit_all, :update_all ]
def new
end
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