govuk_formats = Artefact::FORMATS_BY_DEFAULT_OWNING_APP

Artefact::FORMATS_BY_DEFAULT_OWNING_APP = {
  'publisher' => [
    "creative_work",
    "case_study",
    "course",
    "course_instance",
    "event",
    "news",
    "node",
    "person",
    "organization",
    "article",
    "person",
    "timed_item",
    "faq",
    "job"
  ],
  'whitehall' => [] # Need to define this empty so that govuk_content_models validators still work. See their slug_validator.rb for reasons.
}

Artefact::FORMATS = Artefact::FORMATS_BY_DEFAULT_OWNING_APP.values.flatten + govuk_formats.values.flatten

class Artefact
  field "author", type: String
end
govuk_formats = Artefact::FORMATS_BY_DEFAULT_OWNING_APP

Artefact::FORMATS_BY_DEFAULT_OWNING_APP = {
  'publisher' => [
    "creative_work",
    "case_study",
    "course",
    "course_instance",
    "event",
    "news",
    "node",
    "person",
    "organization",
    "article",
    "person",
    "timed_item",
    "faq",
    "job"
  ],
  'whitehall' => [] # Need to define this empty so that govuk_content_models validators still work. See their slug_validator.rb for reasons.
}

Artefact::FORMATS = Artefact::FORMATS_BY_DEFAULT_OWNING_APP.values.flatten + govuk_formats.values.flatten

class Artefact
  field "author", type: String
  
  def self.category_tags
    [:person, :timed_item, :asset, :article, :organization]
  end
  
  stores_tags_for :sections, :writing_teams, :propositions,
                  :keywords, :legacy_sources, category_tags
  
end
Add extra tag types to Artefact
Add extra tag types to Artefact
