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!