Sha256: 4f2de7078010340630828e5aaef8fd686f6a5bc0d718be07414cdd3f09949754

Contents?: true

Size: 339 Bytes

Versions: 14

Compression:

Stored size: 339 Bytes

Contents

class Admin::ImagesController < Admin::BaseController
  resource_controller
  actions :destroy

  destroy.before do 
    @viewable = object.viewable
  end
  
  destroy.response do |wants| 
    wants.html do
      flash[:notice] = nil
      render :partial => '/admin/products/images', :locals => {:viewable => @viewable}
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 app/controllers/admin/images_controller.rb
spree-0.8.4 app/controllers/admin/images_controller.rb
spree-0.8.5 app/controllers/admin/images_controller.rb
spree-0.4.0 app/controllers/admin/images_controller.rb
spree-0.4.1 app/controllers/admin/images_controller.rb
spree-0.5.0 app/controllers/admin/images_controller.rb
spree-0.5.1 app/controllers/admin/images_controller.rb
spree-0.6.0 app/controllers/admin/images_controller.rb
spree-0.7.0 app/controllers/admin/images_controller.rb
spree-0.7.1 app/controllers/admin/images_controller.rb
spree-0.8.0 app/controllers/admin/images_controller.rb
spree-0.8.1 app/controllers/admin/images_controller.rb
spree-0.8.2 app/controllers/admin/images_controller.rb
spree-0.8.3 app/controllers/admin/images_controller.rb