Move all the existing interactors to Domains namespace

This commit is contained in:
Alex Sherman 2020-11-30 13:46:53 +05:00
parent 09a58fa432
commit 5363c546a5
34 changed files with 250 additions and 222 deletions

View 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