opf/openproject

View on GitHub
app/models/export.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Export < ApplicationRecord
  has_one(
    :job_status,
    -> { where(reference_type: "Export") },
    class_name: "JobStatus::Status",
    foreign_key: :reference_id
  )

  def ready?
    raise "subclass responsibility"
  end
end