feat: add support for tracking inherited filesystem config subclasses

This commit is contained in:
Glenn Y. Rolland 2024-12-11 00:08:26 +01:00
parent 06e3d1895c
commit f383694870

View file

@ -15,6 +15,15 @@ module GX::Models
abstract class AbstractFilesystemConfig
include YAML::Serializable
# include YAML::Serializable::Strict
@@subs = [] of AbstractFilesystemConfig.class
macro inherited
@@subs << {{@type.name.id}}
end
def self.subs
@@subs
end
use_yaml_discriminator "type", {
gocryptfs: GoCryptFSConfig,