Class: SolidusImporter::Processors::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/solidus_importer/processors/log.rb

Instance Method Summary collapse

Methods inherited from Base

#options

Instance Method Details

#call(context) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/solidus_importer/processors/log.rb', line 6

def call(context)
  Spree::LogEntry.create!(
    source_id: context[:row_id],
    source_type: 'SolidusImporter::Row',
    details: context.except(:importer, :data).to_json
  )
end