Class: Locomotive::ImportContentEntryJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/locomotive/import_content_entry_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(content_type_id, csv_asset_id, csv_options) ⇒ Object



6
7
8
9
10
# File 'app/jobs/locomotive/import_content_entry_job.rb', line 6

def perform(content_type_id, csv_asset_id, csv_options)
  content_type = Locomotive::ContentType.find(content_type_id)
  service = Locomotive::ContentEntryImportService.new(content_type)
  service.import(csv_asset_id, csv_options)
end