1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-18 13:59:47 +00:00

style(rubocop): Style/MutableConstant

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 17:34:29 +00:00
الأصل d508772a40
التزام 129dffab9e
14 ملفات معدلة مع 21 إضافات و24 حذوفات

عرض الملف

@@ -44,15 +44,14 @@ class Domain < ApplicationRecord
include HasDNSChecks
VERIFICATION_EMAIL_ALIASES = ["webmaster", "postmaster", "admin", "administrator", "hostmaster"]
VERIFICATION_EMAIL_ALIASES = ["webmaster", "postmaster", "admin", "administrator", "hostmaster"].freeze
VERIFICATION_METHODS = ["DNS", "Email"].freeze
belongs_to :server, optional: true
belongs_to :owner, optional: true, polymorphic: true
has_many :routes, dependent: :destroy
has_many :track_domains, dependent: :destroy
VERIFICATION_METHODS = ["DNS", "Email"]
validates :name, presence: true, format: { with: /\A[a-z0-9\-.]*\z/ }, uniqueness: { case_sensitive: false, scope: [:owner_type, :owner_id], message: "is already added" }
validates :verification_method, inclusion: { in: VERIFICATION_METHODS }