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
-
#collection ⇒ Object
overriding the method in Hydra::Collections so the search builder can find the collection.
- #edit ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
Instance Method Details
#collection ⇒ Object
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 |
#edit ⇒ Object
19 20 21 22 |
# File 'app/controllers/concerns/curation_concerns/collections_controller_behavior.rb', line 19 def edit super form end |
#new ⇒ Object
14 15 16 17 |
# File 'app/controllers/concerns/curation_concerns/collections_controller_behavior.rb', line 14 def new super form end |
#show ⇒ Object
24 25 26 27 |
# File 'app/controllers/concerns/curation_concerns/collections_controller_behavior.rb', line 24 def show presenter super end |