Sha256: 240db39e601583c52d7c111f6c9b8c2c1b8fc6888c03711e653df68358613f71
Contents?: true
Size: 383 Bytes
Versions: 25
Compression:
Stored size: 383 Bytes
Contents
# frozen_string_literal: true module Hyrax class UploadsController < ApplicationController load_and_authorize_resource class: Hyrax::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
25 entries across 25 versions & 1 rubygems