Skip to content

Commit

Permalink
app/controllers/concerns/hyrax/download_behavior.rb - override Hydra:…
Browse files Browse the repository at this point in the history
…:Controller::DownloadBehavior#content_options
  • Loading branch information
dazza-codes committed May 16, 2017
1 parent 810b48c commit 346df30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/concerns/hyrax/download_behavior.rb
Expand Up @@ -29,6 +29,11 @@ def show

protected

# Override the Hydra::Controller::DownloadBehavior#content_options
def content_options
super.merge(disposition: 'attachment')
end

# Override this method if you want to change the options sent when downloading
# a derivative file
def derivative_download_options
Expand Down

0 comments on commit 346df30

Please sign in to comment.