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