Sha256: 77f2630bad1f01d880fd554d624e48d13033d57b316248cf8e819e09c06c3087
Contents?: true
Size: 397 Bytes
Versions: 7
Compression:
Stored size: 397 Bytes
Contents
module Shoppe class AttachmentsController < Shoppe::ApplicationController def destroy @attachment = Nifty::Attachments::Attachment.find(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
7 entries across 7 versions & 3 rubygems