Sha256: d8a61ca5a020f6ac640b042e58b801a7c65cd0310ef9718b3def05d227f28466

Contents?: true

Size: 330 Bytes

Versions: 28

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  # Returns all works, either active or suppressed.
  # This should only be used by an admin user
  class WorksSearchBuilder < Hyrax::SearchBuilder
    include Hyrax::FilterByType
    self.default_processor_chain -= [:only_active_works]

    def only_works?
      true
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hyrax-5.0.4 app/search_builders/hyrax/works_search_builder.rb
hyrax-5.0.3 app/search_builders/hyrax/works_search_builder.rb
hyrax-5.0.2 app/search_builders/hyrax/works_search_builder.rb
hyrax-5.0.1 app/search_builders/hyrax/works_search_builder.rb
hyrax-5.0.0 app/search_builders/hyrax/works_search_builder.rb
hyrax-5.0.0.rc3 app/search_builders/hyrax/works_search_builder.rb
hyrax-5.0.0.rc2 app/search_builders/hyrax/works_search_builder.rb
hyrax-5.0.0.rc1 app/search_builders/hyrax/works_search_builder.rb
hyrax-3.6.0 app/search_builders/hyrax/works_search_builder.rb
hyrax-4.0.0 app/search_builders/hyrax/works_search_builder.rb
hyrax-4.0.0.rc3 app/search_builders/hyrax/works_search_builder.rb
hyrax-4.0.0.rc2 app/search_builders/hyrax/works_search_builder.rb
hyrax-4.0.0.rc1 app/search_builders/hyrax/works_search_builder.rb
hyrax-3.5.0 app/search_builders/hyrax/works_search_builder.rb
hyrax-4.0.0.beta2 app/search_builders/hyrax/works_search_builder.rb
hyrax-3.4.2 app/search_builders/hyrax/works_search_builder.rb
hyrax-4.0.0.beta1 app/search_builders/hyrax/works_search_builder.rb
hyrax-3.4.1 app/search_builders/hyrax/works_search_builder.rb
hyrax-3.4.0 app/search_builders/hyrax/works_search_builder.rb
hyrax-3.3.0 app/search_builders/hyrax/works_search_builder.rb