diff --git a/lib/ontologies_linked_data/models/category.rb b/lib/ontologies_linked_data/models/category.rb index 09b10f87..a92b8a96 100644 --- a/lib/ontologies_linked_data/models/category.rb +++ b/lib/ontologies_linked_data/models/category.rb @@ -6,10 +6,10 @@ class Category < LinkedData::Models::Base attribute :name, enforce: [:existence] attribute :description attribute :created, enforce: [:date_time], default: lambda { |record| DateTime.now } - attribute :parentCategory, enforce: [:category] + attribute :parentCategory, enforce: [:category, :list] attribute :ontologies, inverse: { on: :ontology, attribute: :hasDomain } cache_timeout 86400 end end -end \ No newline at end of file +end