Class: NcsNavigator::Warehouse::Filters::NoBlankForeignKeysFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/ncs_navigator/warehouse/filters/no_blank_foreign_keys_filter.rb

Overview

This filter transforms any blank foreign keys into nil. Blank foreign keys are a common issue in source XML data.

This filter is stateless and so should not be instantiated when added to a warehouse's configuration.

Class Method Summary collapse

Class Method Details

.call(records) ⇒ Object



11
12
13
14
15
# File 'lib/ncs_navigator/warehouse/filters/no_blank_foreign_keys_filter.rb', line 11

def self.call(records)
  records.each do |record|
    remove_missing_foreign_keys(record)
  end
end