Set validation to prohibit ManualInzone with any of the *Hold statuses

This commit is contained in:
Alex Sherman 2021-02-12 15:54:04 +05:00
parent 25e0b61a15
commit ffde929540
4 changed files with 34 additions and 6 deletions

View file

@ -1,6 +1,12 @@
module Concerns::Domain::Deletable
extend ActiveSupport::Concern
DELETE_STATUSES = [
DomainStatus::PENDING_DELETE_CONFIRMATION,
DomainStatus::PENDING_DELETE,
DomainStatus::FORCE_DELETE,
].freeze
private
def delete_later