WIP: feature/1-add-support-for-fs-crud #47
1 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue