Sha256: 2fc4568a22caedcb4ccf6d59a2ed2f89f29e5a4ae19371c8827e4a906a77e657
Contents?: true
Size: 796 Bytes
Versions: 9
Compression:
Stored size: 796 Bytes
Contents
# frozen_string_literal: true 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
9 entries across 9 versions & 1 rubygems