Sha256: c2780c42f2c7fc516dbf7d60b5b4227f5b1b44e21cc148b5969c08643df86b5d
Contents?: true
Size: 409 Bytes
Versions: 4
Compression:
Stored size: 409 Bytes
Contents
module KktShoppe class AttachmentsController < KktShoppe::ApplicationController def destroy @attachment = KktShoppe::Attachment.find_by!(token: params[:id]) @attachment.destroy respond_to do |wants| wants.html { redirect_to request.referer, :notice => t('kkt_shoppe.attachments.remove_notice')} wants.json { render :status => 'complete' } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems