13864 - remove unnecessary routes for update positions

This commit is contained in:
Arun Guleria
2026-02-25 16:29:20 +05:30
parent ab811b2c83
commit b7a1754879
2 changed files with 2 additions and 6 deletions

View File

@@ -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%"}/

View File

@@ -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