mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Remove payments validation
This commit is contained in:
@@ -92,7 +92,6 @@ module Spree
|
||||
validates :email, presence: true,
|
||||
format: /\A([\w.%+\-']+)@([\w\-]+\.)+(\w{2,})\z/i,
|
||||
if: :require_email
|
||||
validates :payments, presence: true, if: ->(order) { order.confirmation? && payment_required? }
|
||||
|
||||
make_permalink field: :number
|
||||
|
||||
|
||||
Reference in New Issue
Block a user