Class: E621::Tag
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- E621::Tag
- Extended by:
- CsvImportable, T::Sig
- Defined in:
- lib/e621/tag.rb
Class Method Summary collapse
Methods included from CsvImportable
Class Method Details
.upsert_all_from_export(records) ⇒ Object
21 22 23 |
# File 'lib/e621/tag.rb', line 21 def self.upsert_all_from_export(records) upsert_all(records.map { |r| attributes_from_export(r) }) end |
.upsert_from_export(record) ⇒ Object
16 17 18 |
# File 'lib/e621/tag.rb', line 16 def self.upsert_from_export(record) upsert(attributes_from_export(record)) end |