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

Version Path
shoppe-1.0.8 app/controllers/shoppe/attachments_controller.rb
kylekthompson-shoppe-1.0.7 app/controllers/shoppe/attachments_controller.rb
shoppe-1.0.7 app/controllers/shoppe/attachments_controller.rb
shoppe-1.0.6 app/controllers/shoppe/attachments_controller.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/app/controllers/shoppe/attachments_controller.rb
shoppe-1.0.5 app/controllers/shoppe/attachments_controller.rb
shoppe-1.0.3 app/controllers/shoppe/attachments_controller.rb