1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 13:35:21 +02:00

Safe load yaml files
Some checks are pending
Publish Docker image / Build docker image (push) Blocked by required conditions
Publish Docker image / ci (push) Waiting to run

This commit is contained in:
Zach Gollwitzer 2024-11-01 09:42:00 -04:00
parent 47288a1629
commit 09b269273a
2 changed files with 12 additions and 2 deletions

View file

@ -23,7 +23,12 @@ class Money::Currency
end
def all
@all ||= YAML.load_file(CURRENCIES_FILE_PATH)
@all ||= YAML.safe_load(
File.read(CURRENCIES_FILE_PATH),
permitted_classes: [],
permitted_symbols: [],
aliases: true
)
end
def all_instances