Class: Bulkrax::ImporterRun

Inherits:
ApplicationRecord show all
Defined in:
app/models/bulkrax/importer_run.rb

Instance Method Summary collapse

Instance Method Details

#parentsObject



9
10
11
# File 'app/models/bulkrax/importer_run.rb', line 9

def parents
  pending_relationships.pluck(:parent_id).uniq
end

#userObject



13
14
15
16
17
# File 'app/models/bulkrax/importer_run.rb', line 13

def user
  # An importer might not have a user, the CLI ingest need not assign a user.  As such, we
  # fallback to the configured user.
  importer.user || Bulkrax.fallback_user_for_importer_exporter_processing
end