Class: Bulkrax::ImporterRun
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Bulkrax::ImporterRun
- Defined in:
- app/models/bulkrax/importer_run.rb
Instance Method Summary collapse
Instance Method Details
#parents ⇒ Object
12 13 14 |
# File 'app/models/bulkrax/importer_run.rb', line 12 def parents pending_relationships.pluck(:parent_id).uniq end |
#set_last_imported_at ⇒ Object
22 23 24 |
# File 'app/models/bulkrax/importer_run.rb', line 22 def set_last_imported_at importer.update(last_imported_at: importer.last_imported_at) end |
#set_next_import_at ⇒ Object
26 27 28 |
# File 'app/models/bulkrax/importer_run.rb', line 26 def set_next_import_at importer.update(next_import_at: importer.next_import_at) end |
#user ⇒ Object
16 17 18 19 20 |
# File 'app/models/bulkrax/importer_run.rb', line 16 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 |