Sha256: 5c14ba065f7cfadc6fac53808b2972c4cb289fb2e501895d52d8791706572f2e

Contents?: true

Size: 334 Bytes

Versions: 15

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  # A relation that scopes to all user visible models (e.g. works + collections + file sets)
  class ExposedModelsRelation < AbstractTypeRelation
    def allowable_types
      (Hyrax.config.curation_concerns + [Hyrax.config.collection_class, ::Collection, ::FileSet]).uniq
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.0.0.rc2 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-5.0.0.rc1 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-3.6.0 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-4.0.0 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-4.0.0.rc3 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-4.0.0.rc2 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-4.0.0.rc1 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-3.5.0 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-4.0.0.beta2 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-3.4.2 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-4.0.0.beta1 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-3.4.1 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-3.4.0 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-3.3.0 app/search_builders/hyrax/exposed_models_relation.rb
hyrax-3.2.0 app/search_builders/hyrax/exposed_models_relation.rb