diff --git a/app/models/customer.rb b/app/models/customer.rb index 24efba25947..2a924a2c85f 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -71,6 +71,8 @@ class Customer < ApplicationRecord validates :payment_provider, inclusion: {in: PAYMENT_PROVIDERS}, allow_nil: true validates :timezone, timezone: true, allow_nil: true + alias :provider_customergit :payment_provider_customer + def self.ransackable_attributes(_auth_object = nil) %w[id name external_id email] end @@ -115,10 +117,6 @@ def preferred_document_locale organization.document_locale.to_sym end - def provider_customer - payment_provider_customer - end - def shipping_address { address_line1: shipping_address_line1,