Sha256: a3b852d6557fce29f59dcf369c9d72db2df554f216f09d3758931367a44632de

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

# Added to allow for the My controller to show only things I have edit access to
class Hyrax::MyCollectionsSearchBuilder < Hyrax::SearchBuilder
  include Hyrax::MySearchBuilderBehavior
  include Hyrax::FilterByType

  self.default_processor_chain += [:show_only_resources_deposited_by_current_user]

  def only_collections?
    true
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.1.0 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.0.5 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.0.4 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.0.3 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.0.2 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.0.1 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.0.0.rc2 app/search_builders/hyrax/my_collections_search_builder.rb
hyrax-1.0.0.rc1 app/search_builders/hyrax/my_collections_search_builder.rb
test_hyrax-0.0.1.alpha app/search_builders/hyrax/my_collections_search_builder.rb