Sha256: 563b898288dfba0202b3cb21dd30ccbecd30ab810ec2e34ea9ab736401815523
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 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 !params[:datastream_id] || params[:datastream_id] == self.class.default_content_dsid params[:filename] || asset.label else params[:datastream_id] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems