Module: CurationConcerns::CollectionsControllerBehavior

Extended by:
ActiveSupport::Concern
Includes:
Hydra::CollectionsControllerBehavior, Hydra::Controller::SearchBuilder
Included in:
CollectionsController
Defined in:
app/controllers/concerns/curation_concerns/collections_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#collectionObject

overriding the method in Hydra::Collections so the search builder can find the collection



30
31
32
# File 'app/controllers/concerns/curation_concerns/collections_controller_behavior.rb', line 30

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

#editObject



19
20
21
22
# File 'app/controllers/concerns/curation_concerns/collections_controller_behavior.rb', line 19

def edit
  super
  form
end

#newObject



14
15
16
17
# File 'app/controllers/concerns/curation_concerns/collections_controller_behavior.rb', line 14

def new
  super
  form
end

#showObject



24
25
26
27
# File 'app/controllers/concerns/curation_concerns/collections_controller_behavior.rb', line 24

def show
  presenter
  super
end