From b52059842829a1a9d4ff062f2be7fad42298da8c Mon Sep 17 00:00:00 2001 From: Denis Ivanov Date: Wed, 29 Jun 2011 19:19:35 -0700 Subject: [PATCH] Caching error kept leftover core charges --- lib/spree_core_charges.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spree_core_charges.rb b/lib/spree_core_charges.rb index e6a34ba..004c039 100644 --- a/lib/spree_core_charges.rb +++ b/lib/spree_core_charges.rb @@ -13,7 +13,7 @@ def self.activate LineItem.class_eval do def update_adjustment(adjustment, source) - adjustment.amount = if adjustment.order.line_items.include? source + adjustment.amount = if adjustment.order(true).line_items.include? source calculate_core_charge else 0