Websites/app/models/e621/post.rb

24 lines
378 B
Ruby
Raw Normal View History

2024-06-11 07:20:34 +00:00
# frozen_string_literal: true
module E621
class Post < ApplicationRecord
self.table_name = "e621.posts"
module SyncMethods
def sync
E621ExportDownloadJob.perform_later("posts")
end
def sync!
E621ExportDownloadJob.perform_now("posts")
end
end
extend SyncMethods
def tags
tag_string.split
end
end
end