Sha256: 87b4b906924c47a3ee5fa15cb3a8a4604435f469f97d4cd4403db93325c84dc8
Contents?: true
Size: 360 Bytes
Versions: 8
Compression:
Stored size: 360 Bytes
Contents
class FileExport < ApplicationRecord include CmAdmin::CustomHelper include Exportable enum :status, { in_progress: 0, success: 1, failed: 2 } has_one_attached :export_file belongs_to :exported_by, polymorphic: true after_create :generate_export_file private def generate_export_file GenerateExportFileJob.perform_later(self) end end
Version data entries
8 entries across 8 versions & 1 rubygems