Method: Hyrax::CitationsController#file

Defined in:
app/controllers/hyrax/citations_controller.rb

#fileObject



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])
  authorize! :show, solr_file
  @presenter = FileSetPresenter.new(solr_file, current_ability, request)
  show
end