app/models/edition.rb in govuk_content_models-43.0.1 vs app/models/edition.rb in govuk_content_models-43.1.0

- old
+ new

@@ -98,10 +98,15 @@ def in_progress_sibling subsequent_siblings.in_progress.order(version_number: "desc").first end def can_create_new_edition? + return false if retired_format? !scheduled_for_publishing? && subsequent_siblings.in_progress.empty? + end + + def retired_format? + Artefact::RETIRED_FORMATS.include? format.downcase end def major_updates_in_series history.published.major_updates end