Skip to content

Commit d733b34

Browse files
committed
fix(routes): Use kwargs over options hash
Using the options hash leads to double `admin/admin` routes in Rails 8.1.
1 parent c143eb6 commit d733b34

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

config/routes.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Alchemy::Engine.routes.draw do
2-
namespace :admin, {
2+
namespace :admin,
33
path: Alchemy.admin_path,
4-
constraints: Alchemy.admin_constraints
5-
} do
4+
constraints: Alchemy.admin_constraints do
65
devise_for :user,
76
class_name: "Alchemy::User",
87
singular: :user,

0 commit comments

Comments
 (0)