Class: Hyrax::CitationsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Breadcrumbs, CurationConcernController, SingularSubresourceController
Defined in:
app/controllers/hyrax/citations_controller.rb

Instance Method Summary collapse

Methods included from SingularSubresourceController

#find_work

Methods included from DenyAccessOverrideBehavior

#deny_access

Methods included from Breadcrumbs

#add_breadcrumb_for_action, #add_breadcrumb_for_controller, #build_breadcrumbs, #default_trail, #trail_from_referer

Methods included from CurationConcernController

#create, #destroy, #edit, #file_manager, #inspect_work, #new, #show, #update

Instance Method Details

#fileObject



13
14
15
16
17
18
19
20
# File 'app/controllers/hyrax/citations_controller.rb', line 13

def file
  # We set _@presenter_ here so it isn't set in CurationConcernController#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

#workObject



9
10
11
# File 'app/controllers/hyrax/citations_controller.rb', line 9

def work
  show
end