Class: InheritPermissionsJob

Inherits:
Hyrax::ApplicationJob show all
Defined in:
app/jobs/inherit_permissions_job.rb

Overview

A job to apply work permissions to all contained files set

Instance Method Summary collapse

Instance Method Details

#perform(work) ⇒ Object

Perform the copy from the work to the contained filesets

Parameters:

  • work

    containing access level and filesets



8
9
10
11
12
13
14
15
# File 'app/jobs/inherit_permissions_job.rb', line 8

def perform(work)
  case work
  when ActiveFedora::Base
    af_perform(work)
  else
    valkyrie_perform(work)
  end
end