18 lines
321 B
Ruby
18 lines
321 B
Ruby
|
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
|