Sha256: 23c7a68c4202531ef1fbcaf6d2fe9cb2835338925d09f1eafe57ed6898ee8092

Contents?: true

Size: 253 Bytes

Versions: 4

Compression:

Stored size: 253 Bytes

Contents

class ActiveFedoraIdBasedJob < ActiveJob::Base
  queue_as :id_based

  attr_accessor :id

  def object
    @object ||= ActiveFedora::Base.find(id)
  end

  alias_method :file_set, :object

  def perform(_)
    fail 'Define #run in a subclass'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curation_concerns-models-0.5.0 app/jobs/active_fedora_id_based_job.rb
curation_concerns-models-0.4.0 app/jobs/active_fedora_id_based_job.rb
curation_concerns-models-0.3.0 app/jobs/active_fedora_id_based_job.rb
curation_concerns-models-0.2.0 app/jobs/active_fedora_id_based_job.rb