From 38dc5b542fb6420ba02366cee37e24b34e6c7671 Mon Sep 17 00:00:00 2001 From: Murilo Dal Ri Date: Tue, 21 Nov 2023 16:45:56 +0000 Subject: [PATCH] Fix user model serialization The serialization needs to be explicitly set in Rails 7.1 --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 52b9e103d..b32ab2b27 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,5 @@ class User < ApplicationRecord include GDS::SSO::User - serialize :permissions, coder: JSON, type: Array + serialize :permissions, coder: YAML, type: Array end