mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
13864 - remove unnecessary routes for update positions
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
#new_variant
|
||||
|
||||
%table.index.sortable{"data-sortable-link" => update_positions_admin_product_variants_path(@product)}
|
||||
%table.index
|
||||
%colgroup
|
||||
%col{style: "width: 25%"}/
|
||||
%col{style: "width: 25%"}/
|
||||
|
||||
@@ -69,11 +69,7 @@ Spree::Core::Engine.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
resources :variants do
|
||||
collection do
|
||||
post :update_positions
|
||||
end
|
||||
end
|
||||
resources :variants
|
||||
end
|
||||
|
||||
get '/variants/search', :to => "variants#search", :as => :search_variants
|
||||
|
||||
Reference in New Issue
Block a user