From c143eb65cb89806b79fad4ca88935e96fa84a3f8 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Mon, 26 Jan 2026 10:27:29 +0100 Subject: [PATCH 1/2] CI: Test with Rails 8.1 Signed-off-by: Thomas von Deyen --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1999334..fabf980 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,14 @@ jobs: rails: - "7.2" - "8.0" + - "8.1" database: - mysql - postgresql - sqlite + exclude: + - alchemy_branch: "8.0-stable" + rails: "8.1" env: DB: ${{ matrix.database }} From d733b34cd0e134c843b453759af8ccffba472eab Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 7 Nov 2025 23:59:10 +0100 Subject: [PATCH 2/2] fix(routes): Use kwargs over options hash Using the options hash leads to double `admin/admin` routes in Rails 8.1. --- config/routes.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 9f26e39..db68f25 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,7 @@ Alchemy::Engine.routes.draw do - namespace :admin, { + namespace :admin, path: Alchemy.admin_path, - constraints: Alchemy.admin_constraints - } do + constraints: Alchemy.admin_constraints do devise_for :user, class_name: "Alchemy::User", singular: :user,