Skip to content

Commit

Permalink
add :ontologies to the serialize_default of the group model
Browse files Browse the repository at this point in the history
implements PR #146
  • Loading branch information
alexskr committed May 22, 2024
1 parent 0480874 commit 013a322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ontologies_linked_data/models/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
end

0 comments on commit 013a322

Please sign in to comment.