mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Convert route to resource
I don't know why the route helper now has "index" in the name.
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
364ae5c0c6
commit
8949f1dc2e
@@ -5,4 +5,4 @@
|
||||
= tab :variant_overrides, url: main_app.admin_inventory_path, match_path: '/inventory'
|
||||
= tab :import, url: main_app.admin_product_import_path, match_path: '/product_import'
|
||||
- if feature?(:admin_style_v3, spree_current_user)
|
||||
= tab :products_v3, url: main_app.admin_products_v3_path
|
||||
= tab :products_v3, url: main_app.admin_products_v3_index_path
|
||||
|
||||
@@ -70,7 +70,7 @@ Openfoodnetwork::Application.routes.draw do
|
||||
post '/product_import/reset_absent', to: 'product_import#reset_absent_products', as: 'product_import_reset_async'
|
||||
|
||||
constraints FeatureToggleConstraint.new(:admin_style_v3) do
|
||||
get '/products_v3', to: 'products_v3#index'
|
||||
resources :products_v3, only: :index
|
||||
end
|
||||
|
||||
resources :variant_overrides do
|
||||
|
||||
Reference in New Issue
Block a user