don't need to explicitly call on class there as we're in the right scope anyway

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1791 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
j.wollert 14 years ago
parent 4d6e9df815
commit 76cdcba1ad
  1. 2
      app/models/cost_query/filter.rb
  2. 2
      app/models/cost_query/group_by.rb

@ -31,7 +31,7 @@ module CostQuery::Filter
end
def self.all_grouped
CostQuery::Filter.all.group_by { |f| f.applies_for }.to_a.sort { |a,b| a.first.to_s <=> b.first.to_s }
all.group_by { |f| f.applies_for }.to_a.sort { |a,b| a.first.to_s <=> b.first.to_s }
end
def self.from_hash

@ -23,7 +23,7 @@ module CostQuery::GroupBy
end
def self.all_grouped
all.group_by { |g| g.applies_for }.to_a.sort { |a,b| a.first.to_s <=> b.first.to_s }
all.group_by { |f| f.applies_for }.to_a.sort { |a,b| a.first.to_s <=> b.first.to_s }
end
def self.from_hash

Loading…
Cancel
Save