Skip to content

Commit

Permalink
Merge pull request #146 from ontoportal-lirmm/pr/add-ontologies-to-se…
Browse files Browse the repository at this point in the history
…rialize-default

Feature: add :ontologies to the serialize_default of the group model
  • Loading branch information
alexskr authored May 22, 2024
2 parents 02986ff + efc0709 commit c8c78d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ontologies_linked_data/models/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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
Expand Down

0 comments on commit c8c78d4

Please sign in to comment.