Sha256: cb0a16088b56c1b43ae2a97b5fca788cacbf0cda8ff6f2585f92236f7cf2fdee
Contents?: true
Size: 772 Bytes
Versions: 36
Compression:
Stored size: 772 Bytes
Contents
module Hyrax class CitationsController < ApplicationController include WorksControllerBehavior include Breadcrumbs include SingularSubresourceController # Overrides decide_layout from WorksControllerBehavior with_themed_layout '1_column' before_action :build_breadcrumbs, only: [:work, :file] def work show end 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 private def show_presenter WorkShowPresenter end end end
Version data entries
36 entries across 36 versions & 1 rubygems