Closed aepyornis closed 2 years ago
Thanks, I'll merge this in - but also, wondering if we can use safe loading with aliases explicitly allowed?
To keep backwards compatibility for older Psych/Ruby versions, I've tweaked this to use safe_load
with aliases in newer versions, and load
for the older approach.
thanks so much!
Ruby 3.1 comes with Psych 4 which has some breaking changes to
YAML.load
See this ruby issue.I had been using a
config/thinking_sphinx.yml
file with aliases, which failed to load after I upgraded a rails app to ruby 3.1. Here's an example configuration:Such a configuration works with ruby versions prior to 3.1.