Module: Hyrax::ValkyrieDownloadsControllerBehavior

Included in:
DownloadsController
Defined in:
app/controllers/concerns/hyrax/valkyrie_downloads_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#show_valkyrieObject



4
5
6
7
8
# File 'app/controllers/concerns/hyrax/valkyrie_downloads_controller_behavior.rb', line 4

def show_valkyrie
  file_set_id = params.require(:id)
  file_set = Hyrax.query_service.find_by(id: file_set_id)
  send_file_contents_valkyrie(file_set)
end