mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Simplify query for existing email
It should be easier to read and more efficient now.
This commit is contained in:
committed by
Maikel Linke
parent
fe979b801f
commit
45fc42723c
@@ -88,7 +88,7 @@ Spree::Order.class_eval do
|
||||
end
|
||||
|
||||
def registered_email?
|
||||
Spree.user_class.find_by_email(email).present?
|
||||
Spree.user_class.exists?(email: email)
|
||||
end
|
||||
|
||||
def disallow_guest_order
|
||||
|
||||
Reference in New Issue
Block a user