Skip to content

Commit

Permalink
Fix code scanning alert no. 21: Use of Kernel.open or IO.read or …
Browse files Browse the repository at this point in the history
…similar sinks with a non-constant value

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
mwvolo and github-advanced-security[bot] authored Oct 18, 2024
1 parent bea8b11 commit 0d53031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/database_url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.config_file
end

def self.db_config
config = YAML::load(ERB.new(IO.read(config_file)).result)
config = YAML::load(ERB.new(File.read(config_file)).result)
config[env]
end

Expand Down

0 comments on commit 0d53031

Please sign in to comment.