cache walker in cost_query

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1134 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 15 years ago
parent 9018c50673
commit d8ee5c93cc
  1. 2
      app/models/cost_query.rb

@ -14,7 +14,7 @@ class CostQuery < ActiveRecord::Base
end end
def walker def walker
CostQuery::Walker.new self @walker ||= CostQuery::Walker.new self
end end
def walk(&block) def walk(&block)

Loading…
Cancel
Save