diff --git a/lib/sequencer/unit/import/common/model/attributes/check_mandatory.rb b/lib/sequencer/unit/import/common/model/attributes/check_mandatory.rb deleted file mode 100644 index dabc6b06c..000000000 --- a/lib/sequencer/unit/import/common/model/attributes/check_mandatory.rb +++ /dev/null @@ -1,36 +0,0 @@ -class Sequencer - class Unit - module Import - module Common - module Model - module Attributes - class CheckMandatory < Sequencer::Unit::Base - prepend ::Sequencer::Unit::Import::Common::Model::Mixin::Skip::Action - - skip_any_action - - uses :mapped - provides :action - - def process - mandatory.each do |mapped_attribute| - next if mapped[mapped_attribute].present? - - logger.info { "Skipping. Missing mandatory attribute '#{mapped_attribute}'." } - state.provide(:action, :skipped) - break - end - end - - private - - def mandatory - raise "Missing implementation of '#{__method__}' method for '#{self.class.name}'" - end - end - end - end - end - end - end -end