Reinstate Spree::PaymentMethod::DISPLAY (removed in Spree but used by us)

This commit is contained in:
Rohan Mitchell
2016-06-10 12:21:10 +10:00
parent 4117b32ebd
commit 7d79fffa33

View File

@@ -1,4 +1,6 @@
Spree::PaymentMethod.class_eval do
Spree::PaymentMethod::DISPLAY = [:both, :front_end, :back_end]
acts_as_taggable
has_and_belongs_to_many :distributors, join_table: 'distributors_payment_methods', :class_name => 'Enterprise', association_foreign_key: 'distributor_id'