Module: Hydra::Controller::DownloadBehavior
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/hydra/controller/download_behavior.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#show ⇒ Object
Responds to http requests to show the file.
Instance Method Details
#show ⇒ Object
Responds to http requests to show the file
12 13 14 15 16 17 18 |
# File 'app/controllers/concerns/hydra/controller/download_behavior.rb', line 12 def show if file.new_record? render_404 else send_content end end |