Skip to content

Commit

Permalink
Merge pull request #88 from ontoportal-lirmm/fix/categories-default-s…
Browse files Browse the repository at this point in the history
…erialize-attributes

Update category.rb
  • Loading branch information
syphax-bouazzouni authored Jun 14, 2023
2 parents 5ebbfc7 + f51005a commit c4d323b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ontologies_linked_data/models/category.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class Category < LinkedData::Models::Base
attribute :parentCategory, enforce: [:category]
attribute :ontologies, inverse: { on: :ontology, attribute: :hasDomain }

serialize_default :acronym, :name, :description, :created, :parentCategory, :ontologies
cache_timeout 86400
end
end
end
end

0 comments on commit c4d323b

Please sign in to comment.