Module: Hyrax::CollectionsControllerBehavior

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

Instance Method Summary collapse

Instance Method Details

#collectionObject



47
48
49
# File 'app/controllers/concerns/hyrax/collections_controller_behavior.rb', line 47

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

#showObject



36
37
38
39
40
41
42
43
44
45
# File 'app/controllers/concerns/hyrax/collections_controller_behavior.rb', line 36

def show
  @curation_concern = @collection # we must populate curation_concern
  presenter
  query_collection_members

  respond_to do |format|
    format.html
    format.json { render 'hyrax/base/show' }
  end
end