Sha256: cc1d3462b4cc090aea5e61b67dfc82940cd35e1e94534e89797ea9664cc8da92

Contents?: true

Size: 300 Bytes

Versions: 48

Compression:

Stored size: 300 Bytes

Contents

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

48 entries across 48 versions & 1 rubygems

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