Class: E621::Pool

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/e621/pool.rb

Class Method Summary collapse

Class Method Details

.upsert_all_from_export(records) ⇒ Object



19
20
21
# File 'lib/e621/pool.rb', line 19

def self.upsert_all_from_export(records)
  upsert_all(records.map { |r| attributes_from_export(r) })
end

.upsert_from_export(record) ⇒ Object



14
15
16
# File 'lib/e621/pool.rb', line 14

def self.upsert_from_export(record)
  upsert(attributes_from_export(record))
end