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

Version Path
cm-admin-4.6.5 app/models/file_export.rb
cm-admin-4.4.8 app/models/file_export.rb
cm-admin-4.4.6 app/models/file_export.rb
cm-admin-4.4.1 app/models/file_export.rb
cm-admin-4.4.0 app/models/file_export.rb
cm-admin-4.3.0 app/models/file_export.rb
cm-admin-4.2.1 app/models/file_export.rb
cm-admin-4.2.0 app/models/file_export.rb