fix app/lib path for loading yml

introduced by d595ae8117
This commit is contained in:
JuliusR 2021-12-18 11:58:07 +01:00
parent dbe260e4fe
commit 90be4c513d

View file

@ -60,7 +60,7 @@ module ArticleImport::DnbXml
@@codes = Hash.new @@codes = Hash.new
def self.load_codes def self.load_codes
dir = Rails.root.join("lib", "article_import") dir = Rails.root.join("app", "lib", "article_import")
begin begin
@@codes = YAML::load(File.open(dir.join("dnb_codes.yml"))).symbolize_keys @@codes = YAML::load(File.open(dir.join("dnb_codes.yml"))).symbolize_keys
rescue => e rescue => e