mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-17 04:34:24 +00:00
Use saved_change_to prefix to check for changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user