From 7911d693465fd5a088e7a13e3f85485aded06bcf Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Mon, 19 Feb 2024 17:13:18 +1000 Subject: [PATCH] Use the new Rails enum API https://github.com/rails/rails/pull/50987 --- app/models/audits1984/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/audits1984/audit.rb b/app/models/audits1984/audit.rb index ce0b5a7..35a2838 100644 --- a/app/models/audits1984/audit.rb +++ b/app/models/audits1984/audit.rb @@ -3,7 +3,7 @@ class Audit < Console1984::Base belongs_to :session, class_name: "Console1984::Session", touch: true belongs_to :auditor, class_name: Audits1984.auditor_class - enum status: %i[ pending approved flagged ] + enum :status, %i[ pending approved flagged ] encrypts :notes end