Class: E621::WikiPage
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- E621::WikiPage
- Extended by:
- T::Sig
- Defined in:
- lib/e621/wiki_page.rb
Class Method Summary collapse
Class Method Details
.upsert_all_from_export(records) ⇒ Object
19 20 21 |
# File 'lib/e621/wiki_page.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/wiki_page.rb', line 14 def self.upsert_from_export(record) upsert(attributes_from_export(record)) end |