Sha256: 08b602c6660f4a5b95437decb27a8724fc1380c7d9b763d94431ca4a84dfd752
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
module Sufia class UploadsController < ApplicationController load_and_authorize_resource class: UploadedFile def create @upload.attributes = { file: params[:files].first, user: current_user } @upload.save! end def destroy @upload.destroy head :no_content end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sufia-7.0.0.beta3 | app/controllers/sufia/uploads_controller.rb |
sufia-7.0.0.beta2 | app/controllers/sufia/uploads_controller.rb |
sufia-7.0.0.beta1 | app/controllers/sufia/uploads_controller.rb |