summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-01-01 18:02:43 +0100
committerMarius Peter <marius.peter@tutanota.com>2025-01-01 18:02:43 +0100
commitcff1e4fc3596943db63603c614eb08945130eeaa (patch)
tree1b74b3b8bd8d381208f52418a95cadfcc4b84cd8 /app
parent84ef779f985dad79081bb87dd85d37ae0bc3d73d (diff)
Rubocop 👮
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