From 50f91cc7d72dead40d2a279d14b277047b5a73e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 29 Jan 2024 10:52:52 +0200 Subject: [PATCH] Fix RS auth array usage in production Serialization into YAML breaks the native PostgreSQL array usage. Needs to be adjusted later to not use the environment, but database adapter (issue #149). --- app/models/remote_storage_authorization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/remote_storage_authorization.rb b/app/models/remote_storage_authorization.rb index 2e574d5..14ef98a 100644 --- a/app/models/remote_storage_authorization.rb +++ b/app/models/remote_storage_authorization.rb @@ -2,7 +2,7 @@ class RemoteStorageAuthorization < ApplicationRecord belongs_to :user belongs_to :web_app, class_name: "AppCatalog::WebApp", optional: true - serialize :permissions + serialize :permissions unless Rails.env.production? validates_presence_of :permissions validates_presence_of :client_id