Sha256: 3f512c94d51a2054d67e4e98c1dd217bc5992c21da8c96990e7d0580a37c25ee
Contents?: true
Size: 398 Bytes
Versions: 10
Compression:
Stored size: 398 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 => "Attachment removed successfully" } wants.json { render :status => 'complete' } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems