From d83f18a3484b3e90d56bb303da551461ec46ae32 Mon Sep 17 00:00:00 2001 From: Bram Jetten Date: Thu, 19 Oct 2023 13:43:54 +0200 Subject: [PATCH] Different syntax for enum in NavigationItem - Fixes #1325 (#1328) --- app/models/spina/navigation_item.rb | 2 +- test/dummy/.ruby-version | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/spina/navigation_item.rb b/app/models/spina/navigation_item.rb index f3698f759..9153f33b8 100644 --- a/app/models/spina/navigation_item.rb +++ b/app/models/spina/navigation_item.rb @@ -6,7 +6,7 @@ class NavigationItem < ApplicationRecord # NavigationItems can be of two different kinds: # - A link to a page # - A link to a URL - enum(:kind, {page: "page", url: "url"}, default: :page, suffix: true) + enum kind: {page: "page", url: "url"}, _suffix: true has_ancestry diff --git a/test/dummy/.ruby-version b/test/dummy/.ruby-version index 94ff29cc4..be94e6f53 100644 --- a/test/dummy/.ruby-version +++ b/test/dummy/.ruby-version @@ -1 +1 @@ -3.1.1 +3.2.2