Module: Hyrax::CollectionsControllerBehavior

Extended by:
ActiveSupport::Concern
Includes:
Blacklight::AccessControls::Catalog, Blacklight::Base
Included in:
Admin::AdminSetsController, CollectionsController
Defined in:
app/controllers/concerns/hyrax/collections_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#collectionObject


34
35
36
# File 'app/controllers/concerns/hyrax/collections_controller_behavior.rb', line 34

def collection
  action_name == 'show' ? @presenter : @collection
end

#showObject


28
29
30
31
32
# File 'app/controllers/concerns/hyrax/collections_controller_behavior.rb', line 28

def show
  @curation_concern ||= Hyrax.query_service.find_by_alternate_identifier(alternate_identifier: params[:id])
  presenter
  query_collection_members
end