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



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

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

#showObject



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

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