Class: Hyrax::CitationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::CitationsController
- Defined in:
- app/controllers/hyrax/citations_controller.rb
Instance Method Summary collapse
Methods included from Breadcrumbs
#add_breadcrumb_for_action, #add_breadcrumb_for_controller, #build_breadcrumbs, #default_trail, #trail_from_referer
Methods included from DenyAccessOverrideBehavior
Methods included from WorksControllerBehavior
#create, #destroy, #edit, #file_manager, #inspect_work, #manifest, #new, #show, #update
Instance Method Details
#file ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/controllers/hyrax/citations_controller.rb', line 17 def file # We set _@presenter_ here so it isn't set in WorksControllerBehavior#presenter # which is intended to find works (not files) solr_file = ::SolrDocument.find(params[:id]) :show, solr_file @presenter = FileSetPresenter.new(solr_file, current_ability, request) show end |
#work ⇒ Object
13 14 15 |
# File 'app/controllers/hyrax/citations_controller.rb', line 13 def work show end |