mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Move all the existing interactors to Domains namespace
This commit is contained in:
parent
09a58fa432
commit
5363c546a5
34 changed files with 250 additions and 222 deletions
17
app/interactions/domains/force_delete/base.rb
Normal file
17
app/interactions/domains/force_delete/base.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
module Domains
|
||||
module ForceDelete
|
||||
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
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue