From f8ec6fff0ffdf102d76f60a3d2e812693212ac25 Mon Sep 17 00:00:00 2001 From: moveson Date: Tue, 17 Dec 2024 10:35:32 -0700 Subject: [PATCH] Require ostruct in other files that use OpenStruct --- app/models/proto_record.rb | 1 + app/services/find_not_expected_bibs.rb | 2 ++ lib/etl/extractors/csv_file_strategy.rb | 1 + 3 files changed, 4 insertions(+) diff --git a/app/models/proto_record.rb b/app/models/proto_record.rb index a4c2275d9..c7cd9dead 100644 --- a/app/models/proto_record.rb +++ b/app/models/proto_record.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "etl/etl" +require "ostruct" class ProtoRecord include ETL::Transformable diff --git a/app/services/find_not_expected_bibs.rb b/app/services/find_not_expected_bibs.rb index 1cb62cbf0..9a587cafa 100644 --- a/app/services/find_not_expected_bibs.rb +++ b/app/services/find_not_expected_bibs.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "ostruct" + class FindNotExpectedBibs include Interactors::Errors include SplitAnalyzable diff --git a/lib/etl/extractors/csv_file_strategy.rb b/lib/etl/extractors/csv_file_strategy.rb index 7bd1397aa..a11c64430 100644 --- a/lib/etl/extractors/csv_file_strategy.rb +++ b/lib/etl/extractors/csv_file_strategy.rb @@ -2,6 +2,7 @@ require "smarter_csv" require "csv" +require "ostruct" module ETL module Extractors