Sha256: 27f85da6c0828ba498260606fa19439aaa7f04ea98e11ea9b04b83ac4a50defb
Contents?: true
Size: 481 Bytes
Versions: 10
Compression:
Stored size: 481 Bytes
Contents
module Sufia module DownloadsControllerBehavior extend ActiveSupport::Concern include Hydra::Controller::DownloadBehavior included do # moved check into the routine so we can handle the user with no access prepend_before_filter :normalize_identifier end def datastream_name if datastream.dsid == self.class.default_content_dsid params[:filename] || asset.label else params[:datastream_id] end end end end
Version data entries
10 entries across 10 versions & 1 rubygems