Skip to content

Commit

Permalink
Merge pull request #5426 from solidusio/elia/admin/misc-fixes
Browse files Browse the repository at this point in the history
Fix `/admin/product/new` in SolidusAdmin
  • Loading branch information
elia authored Oct 11, 2023
2 parents cfa016a + 9fd261a commit 7aec6d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

SolidusAdmin::Engine.routes.draw do
resource :account, only: :show
resources :products, only: [:index, :show, :edit, :update] do
resources(
:products,
only: [:index, :show, :edit, :update],
constraints: ->{ _1.path != "/admin/products/new" },
) do
collection do
delete :destroy
put :discontinue
Expand Down

0 comments on commit 7aec6d0

Please sign in to comment.