lib/mistral_client/mixins/definable.rb in mistral_client-2.0.0 vs lib/mistral_client/mixins/definable.rb in mistral_client-3.0.0
- old
+ new
@@ -5,10 +5,10 @@
def parse_definition(definition)
return YAML.dump(definition) if definition.is_a?(Hash) || definition.is_a?(Array)
definition = File.read(definition) if File.exist?(definition)
# Called outside the if/else to validate the YAML.
- parsed = YAML.safe_load(definition, [], [], true)
+ parsed = YAML.safe_load(definition, aliases: true)
if defined? massage_definition
massage_definition(parsed)
else
definition
end