mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Duplicated payment method distributors association to gateway. This fixes the inheritance problem found in stripe gateway
See PR 2780 for more details
This commit is contained in:
@@ -2,4 +2,7 @@ Spree::Gateway.class_eval do
|
||||
# Default to live
|
||||
preference :server, :string, :default => 'live'
|
||||
preference :test_mode, :boolean, :default => false
|
||||
|
||||
attr_accessible :distributor_ids
|
||||
has_and_belongs_to_many :distributors, join_table: 'distributors_payment_methods', :class_name => 'Enterprise', foreign_key: 'payment_method_id', association_foreign_key: 'distributor_id'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user