implement mechanism of save statuses for force delete and lock

This commit is contained in:
Oleg Hasjanov 2021-07-14 11:16:56 +03:00
parent ec90722bf0
commit 96bc237484
9 changed files with 142 additions and 23 deletions

View file

@ -1,6 +1,10 @@
module Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
module Domain::ForceDelete
extend ActiveSupport::Concern
FORCE_DELETE_STATUSES = [DomainStatus::FORCE_DELETE,
DomainStatus::SERVER_RENEW_PROHIBITED,
DomainStatus::SERVER_TRANSFER_PROHIBITED].freeze
included do
store_accessor :force_delete_data,
:force_delete_type,