From ca21132502c6907d2428779260fd8087c6783288 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Tue, 19 Sep 2023 16:17:39 +0100 Subject: [PATCH] feat: revert before_save -> before_validation --- app/models/log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/log.rb b/app/models/log.rb index 50a570b51..024470b21 100644 --- a/app/models/log.rb +++ b/app/models/log.rb @@ -8,7 +8,7 @@ class Log < ApplicationRecord belongs_to :updated_by, class_name: "User", optional: true belongs_to :bulk_upload, optional: true - before_validation :update_status! + before_save :update_status! STATUS = { "not_started" => 0,