From 7d79fffa33426dfba1f7775a3abaf968333f5bef Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 10 Jun 2016 12:21:10 +1000 Subject: [PATCH] Reinstate Spree::PaymentMethod::DISPLAY (removed in Spree but used by us) --- app/models/spree/payment_method_decorator.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/spree/payment_method_decorator.rb b/app/models/spree/payment_method_decorator.rb index 4a718dfc16..fb5faaef4c 100644 --- a/app/models/spree/payment_method_decorator.rb +++ b/app/models/spree/payment_method_decorator.rb @@ -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'