Skip to content

Commit

Permalink
serialize by default all category attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
imadbourouche committed Dec 19, 2024
1 parent 6fd6960 commit 8f88c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ontologies_linked_data/models/category.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f88c7a

Please sign in to comment.