try fix freezing issue

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1171 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
rkh 15 years ago
parent 81d6d83f12
commit cf5261915c
  1. 2
      app/models/cost_query/sql_statement.rb

@ -49,7 +49,6 @@ class CostQuery::SqlStatement
# @return [CostQuery::SqlStatement] Generated statement
def self.unified_entry(model)
table = table_name_for model
Rails.cache.fetch("unified_#{table}") do
new(table).tap do |query|
query.select COMMON_FIELDS
query.select({
@ -59,7 +58,6 @@ class CostQuery::SqlStatement
send("unify_#{table}", query)
end
end
end
##
# Applies logic for mapping time entries to general entries structure.

Loading…
Cancel
Save