Class: Hyrax::My::WorksSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Includes:
FilterByType
Defined in:
app/search_builders/hyrax/my/works_search_builder.rb

Overview

Added to allow for the Hyrax::My::WorksController to show only things I have deposited If the work went through mediated deposit, I may no longer have edit access to it.

Instance Method Summary collapse

Methods included from FilterByType

#filter_models

Methods inherited from SearchBuilder

#show_only_resources_deposited_by_current_user

Methods included from SearchBuilderBehavior

#discovery_permissions

Instance Method Details

#only_works?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/search_builders/hyrax/my/works_search_builder.rb', line 14

def only_works?
  true
end