Use saved_change_to prefix to check for changes

This commit is contained in:
Andy Brett
2021-04-08 13:47:40 -07:00
committed by Matt-Yorkley
parent c08bc743d3
commit d381b2a544

View File

@@ -147,7 +147,7 @@ module Spree
end
def default_card_needs_updating?
is_default_changed? || gateway_customer_profile_id_changed?
saved_change_to_is_default? || gateway_customer_profile_id_changed?
end
def ensure_single_default_card