Class: Refinery::Products::DigidownloadsController
- Inherits:
-
StoresApplicationController
- Object
- ApplicationController
- StoresApplicationController
- Refinery::Products::DigidownloadsController
- Defined in:
- app/controllers/refinery/products/digidownloads_controller.rb
Instance Method Summary collapse
Instance Method Details
#download ⇒ Object
17 18 19 |
# File 'app/controllers/refinery/products/digidownloads_controller.rb', line 17 def download redirect_to @digidownload.doc.expiring_url(60) # temp authenticated url expires in 60 sec end |
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/refinery/products/digidownloads_controller.rb', line 8 def index @digidownloads = current_refinery_user.digidownloads present(@page) end |
#show ⇒ Object
13 14 15 |
# File 'app/controllers/refinery/products/digidownloads_controller.rb', line 13 def show present(@page) end |