style(rubocop): Style/MutableConstant

This commit is contained in:
Adam Cooke
2024-02-10 17:34:29 +00:00
parent d508772a40
commit 129dffab9e
14 changed files with 21 additions and 24 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class Credential < ApplicationRecord
belongs_to :server
TYPES = ["SMTP", "API", "SMTP-IP"]
TYPES = ["SMTP", "API", "SMTP-IP"].freeze
validates :key, presence: true, uniqueness: { case_sensitive: false }
validates :type, inclusion: { in: TYPES }