mirror of
https://github.com/internetee/registry.git
synced 2025-06-16 01:24:45 +02:00
16 lines
491 B
Ruby
16 lines
491 B
Ruby
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
|
|
|