lib/workflow_setup.rb
# Load the workflows from config/workflows
# Does the same thing as `bin/rails hyrax:workflow:load`
# Note: You MUST create an AdminSet (and its associated PermissionTemplate first)
# If you think you have the right AdminSet, but workflows won't load, check that
# the permission templates didn't get wiped from the database somehow
Load the workflows from config/workflows
Does the same thing as `bin/rails hyrax:workflow:load`
Note: You MUST create an AdminSet (and its associated PermissionTemplate first)
If you think you have the right AdminSet, but workflows won't load, check that
the permission templates didn't get wiped from the database somehow
Load the workflows from config / workflows Does the same thing as ` bin / rails hyrax : workflow : load ` Note : You MUST create an AdminSet ( and its associated PermissionTemplate first ) If you think you have the right AdminSet but workflows won ' t load check that the permission templates didn ' t get wiped from the database somehow
def load_workflows
    raise "Can't load workflows without a Permission Template. Do you need to make an AdminSet first?" if Hyrax::PermissionTemplate.all.empty?
    Hyrax::Workflow::WorkflowImporter.load_workflows(logger: @logger)
    errors = Hyrax::Workflow::WorkflowImporter.load_errors
    abort("Failed to process all workflows:\n  #{errors.join('\n  ')}") unless errors.empty?
  end
def load_workflows raise "Can't load workflows without a Permission Template. Do you need to make an AdminSet first?" if Hyrax :: PermissionTemplate . all . empty? Hyrax :: Workflow :: WorkflowImporter . load_workflows ( logger : @logger ) errors = Hyrax :: Workflow :: WorkflowImporter . load_errors abort ( "Failed to process all workflows:\n  #{errors.join('\n  ')}" ) unless errors . empty? end
Load the workflows from config/workflows
Does the same thing as `bin/rails hyrax:workflow:load`
Note: You MUST create an AdminSet (and its associated PermissionTemplate first)
If you think you have the right AdminSet, but workflows won't load, check that
the permission templates didn't get wiped from the database somehow
Load the workflows from config / workflows Does the same thing as ` bin / rails hyrax : workflow : load ` Note : You MUST create an AdminSet ( and its associated PermissionTemplate first ) If you think you have the right AdminSet but workflows won ' t load check that the permission templates didn ' t get wiped from the database somehow