Module: Hydra::Controller::DownloadBehavior

Extended by:
ActiveSupport::Concern, Deprecation
Defined in:
app/controllers/concerns/hydra/controller/download_behavior.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#showObject

Responds to http requests to show the file



14
15
16
17
18
19
20
# File 'app/controllers/concerns/hydra/controller/download_behavior.rb', line 14

def show
  if file.new_record?
    render_404
  else
    send_content
  end
end