Default payment method server/test_mode to live

This commit is contained in:
Rohan Mitchell
2014-12-12 11:35:18 +11:00
parent e607c9855f
commit 086f69ccfb

View File

@@ -7,4 +7,9 @@ Spree::Gateway.class_eval do
# To avoid that, we redefine this association here.
has_and_belongs_to_many :distributors, join_table: 'distributors_payment_methods', :class_name => 'Enterprise', foreign_key: 'payment_method_id', association_foreign_key: 'distributor_id'
# Default to live
preference :server, :string, :default => 'live'
preference :test_mode, :boolean, :default => false
end