Sha256: 14e17ded03f1d2b67d4c09c7b2888bcb39526d9e1e77bfa3090047a0e39550b4
Contents?: true
Size: 413 Bytes
Versions: 22
Compression:
Stored size: 413 Bytes
Contents
class ActiveFedoraPidBasedJob def queue_name :pid_based end attr_accessor :pid def initialize(pid) self.pid = pid end def object @object ||= ActiveFedora::Base.find(pid, cast: true).tap do |f| f.reload_on_save = true end end alias_method :generic_file, :object alias_method :generic_file_id, :pid def run raise RuntimeError, "Define #run in a subclass" end end
Version data entries
22 entries across 22 versions & 2 rubygems