Class: AtlasEngine::AddressImporter::OpenAddress::Loader

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
app/models/atlas_engine/address_importer/open_address/loader.rb

Instance Method Summary collapse

Instance Method Details

#load(addresses) ⇒ Object



11
12
13
14
15
16
# File 'app/models/atlas_engine/address_importer/open_address/loader.rb', line 11

def load(addresses)
  PostAddress.upsert_all( # rubocop:disable Rails/SkipsModelValidations
    addresses,
    on_duplicate: merge_building_ranges_clause,
  )
end