Sha256: 216ebc63cf8e6e97eb31ad1e5028dedd1bb3bb89c54d9037f6a8e6c5f88e4c48

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

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

  self.default_processor_chain += [:show_only_resources_deposited_by_current_user]

  def only_works?
    true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_hyrax-0.0.1.alpha app/search_builders/hyrax/my_works_search_builder.rb