Skip to content

Commit

Permalink
Different syntax for enum in NavigationItem - Fixes #1325 (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramjetten authored Oct 19, 2023
1 parent eae8bc6 commit d83f18a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/spina/navigation_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/dummy/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.1
3.2.2

0 comments on commit d83f18a

Please sign in to comment.