Remove domain namespace

This commit is contained in:
Alex Sherman 2020-11-11 21:16:27 +05:00
parent bce39e3404
commit e62f0a077a
19 changed files with 143 additions and 157 deletions

View 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