app/models/edition.rb in govuk_content_models-28.0.0 vs app/models/edition.rb in govuk_content_models-28.0.1

- old
+ new

@@ -32,12 +32,10 @@ field :archiver, type: String field :major_change, type: Boolean, default: false field :change_note, type: String field :review_requested_at, type: DateTime - GOVSPEAK_FIELDS = [] - belongs_to :assigned_to, class_name: "User" # state_machine comes from Workflow state_machine.states.map(&:name).each do |state| scope state, where(state: state) @@ -55,10 +53,10 @@ validates :title, presence: true validates :version_number, presence: true, uniqueness: {scope: :panopticon_id} validates :panopticon_id, presence: true validates_with SafeHtml - validates_with LinkValidator, on: :update + validates_with LinkValidator, on: :update, unless: :archived? validates_with TopicValidator, BrowsePageValidator, ReviewerValidator validates_presence_of :change_note, if: :major_change before_save :check_for_archived_artefact before_destroy :destroy_artefact