Class: Refinery::Products::DigidownloadsController

Inherits:
StoresApplicationController show all
Defined in:
app/controllers/refinery/products/digidownloads_controller.rb

Instance Method Summary collapse

Instance Method Details

#downloadObject



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

#indexObject



8
9
10
11
# File 'app/controllers/refinery/products/digidownloads_controller.rb', line 8

def index
  @digidownloads = current_refinery_user.digidownloads
  present(@page)
end

#showObject



13
14
15
# File 'app/controllers/refinery/products/digidownloads_controller.rb', line 13

def show
  present(@page)
end