mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Ensure that all PaymentMethod-derived classes also allow distributor_id
This commit is contained in:
@@ -13,4 +13,9 @@ Spree::PaymentMethod.class_eval do
|
||||
where('distributor_id IN (?)', user.enterprises.map {|enterprise| enterprise.id })
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
# Ensure that all derived classes also allow distributor_id
|
||||
Spree::Gateway.providers.each do |p|
|
||||
p.attr_accessible :distributor_id
|
||||
end
|
||||
Reference in New Issue
Block a user