Sha256: 57fa81e5cf9ed2e99163e3da9a1d7930c77df6d3e8d63aeda9829d58cfd0466e
Contents?: true
Size: 461 Bytes
Versions: 7
Compression:
Stored size: 461 Bytes
Contents
module Sufia module Workflow class WorkflowByAdminSetStrategy def initialize(_work, attributes) @admin_set_id = attributes[:admin_set_id] if attributes[:admin_set_id].present? end # @return [String] The name of the workflow by admin_set to use def workflow_name return 'default' unless @admin_set_id Sufia::PermissionTemplate.find_by!(admin_set_id: @admin_set_id).workflow_name end end end end
Version data entries
7 entries across 7 versions & 1 rubygems