From 013a322440b4cfd899908d15ff605799acf8e6ef Mon Sep 17 00:00:00 2001 From: Alex Skrenchuk Date: Wed, 22 May 2024 10:51:57 -0700 Subject: [PATCH] add :ontologies to the serialize_default of the group model implements PR #146 --- lib/ontologies_linked_data/models/group.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ontologies_linked_data/models/group.rb b/lib/ontologies_linked_data/models/group.rb index 73ee8fd8..d37d13fe 100644 --- a/lib/ontologies_linked_data/models/group.rb +++ b/lib/ontologies_linked_data/models/group.rb @@ -8,7 +8,9 @@ class Group < LinkedData::Models::Base attribute :created, enforce: [:date_time], :default => lambda { |record| DateTime.now } attribute :ontologies, inverse: { on: :ontology, attribute: :group } + serialize_default :acronym, :name, :description, :created, :ontologies + cache_timeout 86400 end end -end \ No newline at end of file +end