From 77ef290d18b8f8763fe9027225af141add763cb1 Mon Sep 17 00:00:00 2001 From: Anna Velentsevich Date: Mon, 29 Jul 2024 09:53:40 +0200 Subject: [PATCH] fix linter error --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 9f9901ca1d5..1942d91bbf3 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -71,7 +71,7 @@ class Customer < ApplicationRecord validates :payment_provider, inclusion: {in: PAYMENT_PROVIDERS}, allow_nil: true validates :timezone, timezone: true, allow_nil: true - alias :provider_customer :payment_provider_customer + alias_method :provider_customer :payment_provider_customer def self.ransackable_attributes(_auth_object = nil) %w[id name external_id email]