Module: AtlasEngine::AddressValidation::PredicatePipeline::Backend

Extended by:
FrozenRecord::Backends::Yaml, T::Sig
Defined in:
app/models/atlas_engine/address_validation/predicate_pipeline.rb

Class Method Summary collapse

Class Method Details

.load(file_path) ⇒ Object



18
19
20
21
22
23
24
# File 'app/models/atlas_engine/address_validation/predicate_pipeline.rb', line 18

def load(file_path)
  # FrozenRecord's default is to operate on a single YAML file containing all the records.
  # A custom backend like ours, that uses separate files, must load all of them and return an array.
  Dir[File.join(PredicatePipeline.pipeline_path, "*.yml")].map do |validation_pipeline|
    super(validation_pipeline)
  end
end