Skip to content

Commit

Permalink
Fix safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Jun 24, 2024
1 parent 1d5a848 commit 7317542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/decidim/apiauth/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7317542

Please sign in to comment.