Class: Hyrax::MyCollectionsSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Includes:
FilterByType, MySearchBuilderBehavior
Defined in:
app/search_builders/hyrax/my_collections_search_builder.rb

Overview

Added to allow for the My controller to show only things I have edit access to

Instance Method Summary collapse

Methods included from FilterByType

#filter_models

Methods included from MySearchBuilderBehavior

#discovery_permissions

Methods inherited from SearchBuilder

#show_only_resources_deposited_by_current_user

Methods included from SearchFilters

#discovery_permissions, #gated_discovery_filters

Methods included from FilterSuppressed

#only_active_works

Instance Method Details

#only_collections?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/search_builders/hyrax/my_collections_search_builder.rb', line 8

def only_collections?
  true
end