From f6c3a2a46e9f5b390f5d82eda21b850e1aaa9d92 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Mon, 11 Sep 2017 15:10:50 +1000 Subject: [PATCH] Remove new credit card initialisation logic from Spree::UsersController#show --- app/controllers/spree/users_controller_decorator.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/controllers/spree/users_controller_decorator.rb b/app/controllers/spree/users_controller_decorator.rb index bfdd83f839..417086ca51 100644 --- a/app/controllers/spree/users_controller_decorator.rb +++ b/app/controllers/spree/users_controller_decorator.rb @@ -2,7 +2,6 @@ Spree::UsersController.class_eval do layout 'darkswarm' before_filter :enable_embedded_shopfront - before_filter :set_credit_card, only: :show # Override of spree_auth_devise default # Ignores invoice orders, only order where state: 'complete' @@ -13,10 +12,4 @@ Spree::UsersController.class_eval do @orders = @orders.where('distributor_id != ?', Spree::Config.accounts_distributor_id) end - - private - - def set_credit_card - @credit_card = Spree::CreditCard.new(user: @user) - end end