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