From f57661b13f9c3a7aa6cb5dfd3313abb2544e627c Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 15 Nov 2017 11:33:30 +0100 Subject: [PATCH] Fix payment_method_decorator boot-time warning Removes the annoying message "warning: already initialized constant Spree::PaymentMethod::DISPLAY" that appears 4 times when booting the app. We are declaring said constant exactly as our Spree version does so there's no point on repeating work. --- app/models/spree/payment_method_decorator.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/spree/payment_method_decorator.rb b/app/models/spree/payment_method_decorator.rb index 86538af117..3c7f88804b 100644 --- a/app/models/spree/payment_method_decorator.rb +++ b/app/models/spree/payment_method_decorator.rb @@ -1,8 +1,6 @@ Spree::PaymentMethod.class_eval do include Spree::Core::CalculatedAdjustments - 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'