diff --git a/lib/expressir/express/cache.rb b/lib/expressir/express/cache.rb index 1666c58..f18e1ed 100644 --- a/lib/expressir/express/cache.rb +++ b/lib/expressir/express/cache.rb @@ -37,7 +37,7 @@ def self.from_file(file, root_path: nil, test_overwrite_version: nil) yaml_compressed = File.binread(file) yaml = Zlib::Inflate.inflate(yaml_compressed) - hash = YAML.safe_load(yaml) + hash = YAML.safe_load(yaml, permitted_classes: [Symbol]) cache = Model::ModelElement.from_hash(hash, root_path: root_path) if cache.version != version