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