Sha256: 06001b0d5032e58665889c149cd1951622bba73cb34d8b1863a79659a3bcf982

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 Bytes

Contents

module KktShoppe
  class AttachmentsController < KktShoppe::ApplicationController

    def destroy
      @attachment = Nifty::Attachments::Attachment.find(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

Version Path
kkt_shoppe-1.2.1 app/controllers/kkt_shoppe/attachments_controller.rb
kkt_shoppe-1.2.0 app/controllers/kkt_shoppe/attachments_controller.rb
kkt_shoppe-1.1.1 app/controllers/kkt_shoppe/attachments_controller.rb
kkt_shoppe-1.1.0 app/controllers/kkt_shoppe/attachments_controller.rb