Sha256: c9a625134de5c86bda5fefdc8b084b4d13ddf603dad4552b4a1a4da20bb2dc1c

Contents?: true

Size: 391 Bytes

Versions: 10

Compression:

Stored size: 391 Bytes

Contents

module Tienda
  class AttachmentsController < Tienda::ApplicationController

    def destroy
      @attachment = Nifty::Attachments::Attachment.find(params[:id])
      @attachment.destroy
      respond_to do |wants|
        wants.html { redirect_to request.referer, notice: t('tienda.attachments.remove_notice')}
        wants.json { render status: 'complete' }
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tienda-2.1.3 app/controllers/tienda/attachments_controller.rb
tienda-2.1.2 app/controllers/tienda/attachments_controller.rb
tienda-2.1.1 app/controllers/tienda/attachments_controller.rb
tienda-2.1.0 app/controllers/tienda/attachments_controller.rb
tienda-2.0.2 app/controllers/tienda/attachments_controller.rb
tienda-2.0.1 app/controllers/tienda/attachments_controller.rb
tienda-1.1.2 app/controllers/tienda/attachments_controller.rb
tienda-1.1.1 app/controllers/tienda/attachments_controller.rb
tienda-1.1.0 app/controllers/tienda/attachments_controller.rb
tienda-1.0.0 app/controllers/tienda/attachments_controller.rb