Sha256: 989ca8b9d33dca98b4e555a370f3661c0ad28b4d4fa17879186c1a2a20160e3d

Contents?: true

Size: 284 Bytes

Versions: 44

Compression:

Stored size: 284 Bytes

Contents

module Hyrax
  module InAdminSet
    extend ActiveSupport::Concern

    included do
      belongs_to :admin_set, predicate: Hyrax.config.admin_set_predicate
    end

    def active_workflow
      Sipity::Workflow.find_active_workflow_for(admin_set_id: admin_set_id)
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.9.5 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.9.4 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.9.3 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.9.2 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.9.1 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.9.0 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.8.0 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.7.2 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.7.1 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.7.0 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.6.0 app/models/concerns/hyrax/in_admin_set.rb
hyrax-3.0.0.pre.rc1 app/models/concerns/hyrax/in_admin_set.rb
hyrax-3.0.0.pre.beta3 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.5.1 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.5.0 app/models/concerns/hyrax/in_admin_set.rb
hyrax-3.0.0.pre.beta2 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.4.1 app/models/concerns/hyrax/in_admin_set.rb
hyrax-3.0.0.pre.beta1 app/models/concerns/hyrax/in_admin_set.rb
hyrax-2.4.0 app/models/concerns/hyrax/in_admin_set.rb