app/models/workflow.rb in govuk_content_models-11.0.0 vs app/models/workflow.rb in govuk_content_models-11.0.1
- old
+ new
@@ -7,9 +7,10 @@
extend ActiveSupport::Concern
included do
validate :not_editing_published_item
before_destroy :check_can_delete_and_notify
+ after_destroy :notify_siblings_of_published_edition
before_save :denormalise_users
after_create :notify_siblings_of_new_edition
field :state, type: String, default: "draft"