From 81716f7e277174375d5c9c0761b0aa36ea2827db Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 23 Jan 2026 14:35:43 +0100 Subject: [PATCH] Fix quote cache invalidation (#37592) --- app/models/quote.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/quote.rb b/app/models/quote.rb index 425cf6305..e4f3b823f 100644 --- a/app/models/quote.rb +++ b/app/models/quote.rb @@ -48,7 +48,7 @@ class Quote < ApplicationRecord def accept! update!(state: :accepted) - reset_parent_cache! if attribute_changed?(:state) + reset_parent_cache! if attribute_previously_changed?(:state) end def reject!