Sha256: 65f4b1d79475900c550be0945598d58e9aa0df822a06c2fb4256f545bf9ce5f9

Contents?: true

Size: 368 Bytes

Versions: 10

Compression:

Stored size: 368 Bytes

Contents

class Shoppe::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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shoppe-0.0.14 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.13 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.12 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.11 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.10 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.9 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.8 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.7 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.6 app/controllers/shoppe/attachments_controller.rb
shoppe-0.0.5 app/controllers/shoppe/attachments_controller.rb