Permalink
Browse files

Fix issue with delete link

link_to_remove has changed within Spree 1.3, and so we need to update
this extension accordingly.

Fixes #35
  • Loading branch information...
1 parent 5b10007 commit 8012231b273893e51d9ca4a4bee07af2cef9778d @radar radar committed Jan 23, 2013
Showing with 13 additions and 0 deletions.
  1. +11 −0 app/controllers/spree/admin/volume_prices_controller.rb
  2. +2 −0 config/routes.rb
@@ -0,0 +1,11 @@
+module Spree
+ module Admin
+ class VolumePricesController < Spree::Admin::BaseController
+ def destroy
+ @volume_price = Spree::VolumePrice.find(params[:id])
+ @volume_price.destroy
+ render :nothing => true
+ end
+ end
+ end
+end
View
@@ -5,6 +5,8 @@
get :volume_prices, :on => :member
end
end
+
+ delete '/volume_prices/:id', :to => "volume_prices#destroy", :as => :volume_price
end
end

2 comments on commit 8012231

Member

iloveitaly replied Feb 22, 2013

@radar this needs to be on 1-2-stable as well, the admin page is broken.

Added to 1-2-stable.

Please sign in to comment.