Skip to content

Commit ee9bb6c

Browse files
committed
Rails 7.2: enum with positional args
1 parent 90bf74a commit ee9bb6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/sponsor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Sponsor < ApplicationRecord
22
include Auditor::Model
33
require 'uri'
44

5-
enum level: {
5+
enum :level, {
66
hidden: 0, # hidden from the sponsors page but still visible on event pages
77
standard: 1,
88
bronze: 2,

0 commit comments

Comments
 (0)