From 2b921542a527bc0bb21f59c9281dbe5a366c1e5d Mon Sep 17 00:00:00 2001 From: Steve Pettitt Date: Tue, 26 Apr 2016 04:24:44 +0100 Subject: [PATCH] Code styling --- app/models/spree/user_decorator.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/spree/user_decorator.rb b/app/models/spree/user_decorator.rb index 011bffc5dd..afd32bd294 100644 --- a/app/models/spree/user_decorator.rb +++ b/app/models/spree/user_decorator.rb @@ -54,10 +54,9 @@ Spree.user_class.class_eval do enterprise_ids = orders.where(state: :complete).map(&:distributor_id).uniq # Exclude the accounts distributor if Spree::Config.accounts_distributor_id - enterprise_ids = enterprise_ids.keep_if{|a| a != Spree::Config.accounts_distributor_id} + enterprise_ids = enterprise_ids.keep_if { |a| a != Spree::Config.accounts_distributor_id } end enterprise_ids - end # Returns orders and their associated payments for all distributors that have been ordered from