From d84e379b6ce6cd0e8c4672e5056279b3cc643827 Mon Sep 17 00:00:00 2001 From: Imad Bourouche Date: Thu, 19 Dec 2024 11:53:57 +0100 Subject: [PATCH] serialize by default all category attributes (#175) --- lib/ontologies_linked_data/models/category.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ontologies_linked_data/models/category.rb b/lib/ontologies_linked_data/models/category.rb index a92b8a96..ba585fe8 100644 --- a/lib/ontologies_linked_data/models/category.rb +++ b/lib/ontologies_linked_data/models/category.rb @@ -9,6 +9,7 @@ class Category < LinkedData::Models::Base attribute :parentCategory, enforce: [:category, :list] attribute :ontologies, inverse: { on: :ontology, attribute: :hasDomain } + serialize_default :acronym, :name, :description, :created, :parentCategory, :ontologies cache_timeout 86400 end end