Code styling

This commit is contained in:
Steve Pettitt
2016-04-26 04:24:44 +01:00
parent ad6037ac63
commit 2b921542a5

View File

@@ -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