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:
luisramos0
2018-10-13 23:44:43 +01:00
parent db9669b4ce
commit b3c56e6823

View File

@@ -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