mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
parent
7cca7b2976
commit
d57c737a80
8 changed files with 69 additions and 112 deletions
|
@ -5,6 +5,11 @@ module Concerns::Domain::Deletable
|
|||
alias_attribute :delete_time, :delete_at
|
||||
end
|
||||
|
||||
def discard
|
||||
self.statuses << DomainStatus::DELETE_CANDIDATE
|
||||
save
|
||||
end
|
||||
|
||||
def discarded?
|
||||
statuses.include?(DomainStatus::DELETE_CANDIDATE)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue