From d8ee5c93cceff7b7892e7e2d37dd97a907f58fce Mon Sep 17 00:00:00 2001
From: "p.tessenow"
Date: Thu, 27 May 2010 09:19:17 +0000
Subject: [PATCH] cache walker in cost_query
git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1134 7926756e-e54e-46e6-9721-ed318f58905e
---
app/models/cost_query.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/models/cost_query.rb b/app/models/cost_query.rb
index 311fb48ed0..8fd11b5780 100644
--- a/app/models/cost_query.rb
+++ b/app/models/cost_query.rb
@@ -14,7 +14,7 @@ class CostQuery < ActiveRecord::Base
end
def walker
- CostQuery::Walker.new self
+ @walker ||= CostQuery::Walker.new self
end
def walk(&block)