mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Remove domain namespace
This commit is contained in:
parent
bce39e3404
commit
e62f0a077a
19 changed files with 143 additions and 157 deletions
11
app/interactions/force_delete_interaction/check_discarded.rb
Normal file
11
app/interactions/force_delete_interaction/check_discarded.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
module ForceDeleteInteraction
|
||||
class CheckDiscarded < Base
|
||||
def execute
|
||||
return true unless domain.discarded?
|
||||
|
||||
message = 'Force delete procedure cannot be scheduled while a domain is discarded'
|
||||
errors.add(:domain, message)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue