style(rubocop): Style/WordArray

This commit is contained in:
Adam Cooke
2024-02-10 22:39:43 +00:00
parent 129dffab9e
commit bd85920565
11 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class Credential < ApplicationRecord
belongs_to :server
TYPES = ["SMTP", "API", "SMTP-IP"].freeze
TYPES = %w[SMTP API SMTP-IP].freeze
validates :key, presence: true, uniqueness: { case_sensitive: false }
validates :type, inclusion: { in: TYPES }