Sha256: e6873e6a992efb7307b7f5789d740159747df8868bc6a7b43139d45e10dc8494

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 Bytes

Contents

class CitationsController < ApplicationController
  include CurationConcerns::CurationConcernController
  include Sufia::Breadcrumbs
  include Sufia::SingularSubresourceController

  before_action :build_breadcrumbs, only: [:work, :file]

  def work
    @curation_concern_type = GenericWork
    @presenter_class = Sufia::WorkShowPresenter
    show
  end

  def file
    @curation_concern_type = FileSet
    @presenter_class = Sufia::FileSetPresenter
    show
  end

  protected

    def show_presenter
      @presenter_class
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sufia-7.0.0.beta4 app/controllers/citations_controller.rb
sufia-7.0.0.beta3 app/controllers/citations_controller.rb
sufia-7.0.0.beta2 app/controllers/citations_controller.rb
sufia-7.0.0.beta1 app/controllers/citations_controller.rb