Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Jul 23, 2018
1 parent ce515c6 commit 4c6afa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/chargeback/consumption_with_rollups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def sub_metric_rollups(sub_metric)
def values(metric, sub_metric = nil)
@values ||= {}
@values["#{metric}#{sub_metric}"] ||= begin
metric = ChargeableField::VIRTUAL_COL_USES[metric] || metric
sub_metric ? sub_metric_rollups(sub_metric) : @rollup_array.collect { |x| x[ChargeableField.col_index(metric)] }.compact
end
end
Expand Down

0 comments on commit 4c6afa6

Please sign in to comment.