app/models/workflow.rb in govuk_content_models-27.1.0 vs app/models/workflow.rb in govuk_content_models-27.2.0

- old
+ new

@@ -114,10 +114,11 @@ text += ' on ' + publish_at.strftime("%d/%m/%Y %H:%M") if scheduled_for_publishing? text end def denormalise_users! - set(:assignee, assigned_to.name) if assigned_to + new_assignee = assigned_to.try(:name) + set(:assignee, new_assignee) unless new_assignee == assignee update_user_action("creator", [Action::CREATE, Action::NEW_VERSION]) update_user_action("publisher", [Action::PUBLISH]) update_user_action("archiver", [Action::ARCHIVE]) self end