class AbstractImporter::Strategies::UpsertStrategy
Public Class Methods
new(collection, options={})
click to toggle source
Calls superclass method
AbstractImporter::Strategies::InsertStrategy::new
# File lib/abstract_importer/strategies/upsert_strategy.rb, line 7 def initialize(collection, options={}) super @bulk_operation = :upsert_all @insert_options.reverse_merge!(unique_by: remap_ids? ? (association_attrs.keys + %i{legacy_id}) : :id) end
Public Instance Methods
already_imported?(hash)
click to toggle source
We won’t skip any records for already being imported
# File lib/abstract_importer/strategies/upsert_strategy.rb, line 14 def already_imported?(hash) false end