mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove useless code
This commit is contained in:
@@ -46,8 +46,6 @@ class Customer < ApplicationRecord
|
||||
attr_accessor :gateway_recurring_payment_client_secret, :gateway_shop_id
|
||||
|
||||
def self.find_or_new(email, enterprise_id)
|
||||
Customer.new(email: email, enterprise_id: enterprise_id) unless email.present? && enterprise_id.present?
|
||||
|
||||
Customer.find_by(email: email, enterprise_id: enterprise_id) ||
|
||||
Customer.new(email: email, enterprise_id: enterprise_id)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user