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

Version Path
shoppe-1.0.2 app/controllers/shoppe/attachments_controller.rb
shoppe-1.0.1 app/controllers/shoppe/attachments_controller.rb
shoppe-1.0.0 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.21 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.20 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.19 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.18 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.17 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.16 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.15 app/controllers/shoppe/attachments_controller.rb