2024-06-11 07:20:34 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-06-04 19:48:30 +00:00
|
|
|
module E621
|
|
|
|
class WikiPage < ApplicationRecord
|
|
|
|
self.table_name = "e621.wiki_pages"
|
|
|
|
|
|
|
|
module SyncMethods
|
|
|
|
def sync
|
|
|
|
E621ExportDownloadJob.perform_later("wiki_pages")
|
|
|
|
end
|
|
|
|
|
|
|
|
def sync!
|
|
|
|
E621ExportDownloadJob.perform_now("wiki_pages")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
extend SyncMethods
|
|
|
|
end
|
|
|
|
end
|