From 73175426d548fec63586de9b012db655c002ad32 Mon Sep 17 00:00:00 2001 From: Joonas Date: Mon, 24 Jun 2024 12:39:12 +0300 Subject: [PATCH] Fix safe_load --- lib/generators/decidim/apiauth/install_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/decidim/apiauth/install_generator.rb b/lib/generators/decidim/apiauth/install_generator.rb index 264080b..b20718f 100644 --- a/lib/generators/decidim/apiauth/install_generator.rb +++ b/lib/generators/decidim/apiauth/install_generator.rb @@ -16,7 +16,7 @@ class InstallGenerator < Rails::Generators::Base def add_jwt_secret secrets_path = Rails.application.root.join("config", "secrets.yml") evaluated_secrets = ERB.new(File.read(secrets_path)) - secrets = YAML.safe_load(evaluated_secrets.result, [], [], true) + secrets = YAML.safe_load(evaluated_secrets.result, aliases: true) return if secrets.dig(:test, :secret_key_jwt) return unless options[:test_initializer]