From 44ed701d87a910ff08adbd5f8e46be0f5ad581ea Mon Sep 17 00:00:00 2001 From: jrhoads Date: Fri, 13 Jan 2023 15:28:35 -0500 Subject: [PATCH] Add missing method for subject assignment used by the RepositoriesController --- app/models/client.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/client.rb b/app/models/client.rb index 817083a39..856781b5d 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -499,6 +499,10 @@ def re3data=(value) write_attribute(:re3data_id, attr) end + def subjects=(value) + write_attribute(:subjects, Array.wrap(value)) + end + def opendoar=(value) attr = value.present? ? value[38..-1] : nil write_attribute(:opendoar_id, attr)