pstore
pstore copied to clipboard
How to initialize with `permitted_classes` for safe deserialization
store = YAML::Store.new(
store_file,
false, # for thread_safe, true or false
yaml_options: {
permitted_classes: permitted_classes_list,
aliases: true # Allow YAML aliases if you use them
}
)
I expected this to work with a permitted classes list, but it is not and results in a Psych::DisallowedClass: Tried to load unspecified class: error