lib/worldwide/regions_loader.rb in worldwide-1.8.0 vs lib/worldwide/regions_loader.rb in worldwide-1.9.0
- old
+ new
@@ -285,9 +285,9 @@
region.add_zone(subregion)
subregion
end
def world_yml
- @world_yml ||= YAML.load_file(File.join(Worldwide::Paths::DB_DATA_ROOT, "world.yml"))
+ @world_yml ||= YAML.load_file(File.join(Worldwide::Paths::DB_DATA_ROOT, "world.yml"), freeze: true)
end
end
end