mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Remove domain namespace
This commit is contained in:
parent
bce39e3404
commit
e62f0a077a
19 changed files with 143 additions and 157 deletions
16
app/interactions/force_delete_interaction/base.rb
Normal file
16
app/interactions/force_delete_interaction/base.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
module ForceDeleteInteraction
|
||||
class Base < ActiveInteraction::Base
|
||||
object :domain,
|
||||
class: Domain,
|
||||
description: 'Domain to set ForceDelete on'
|
||||
symbol :type,
|
||||
default: :fast_track,
|
||||
description: 'Force delete type, might be :fast_track or :soft'
|
||||
boolean :notify_by_email,
|
||||
default: false,
|
||||
description: 'Do we need to send email notification'
|
||||
|
||||
validates :type, inclusion: { in: %i[fast_track soft] }
|
||||
end
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue