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


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

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

#showObject


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

def show
  @curation_concern ||= ActiveFedora::Base.find(params[:id])
  presenter
  query_collection_members
end