Fix quote cache invalidation (#37592)
This commit is contained in:
parent
93bda9c76d
commit
d05df5c197
@ -48,7 +48,7 @@ class Quote < ApplicationRecord
|
|||||||
def accept!
|
def accept!
|
||||||
update!(state: :accepted)
|
update!(state: :accepted)
|
||||||
|
|
||||||
reset_parent_cache! if attribute_changed?(:state)
|
reset_parent_cache! if attribute_previously_changed?(:state)
|
||||||
end
|
end
|
||||||
|
|
||||||
def reject!
|
def reject!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user