|
|
|
@ -1,5 +1,3 @@ |
|
|
|
|
require 'abbrev' |
|
|
|
|
|
|
|
|
|
class Report::GroupBy |
|
|
|
|
class Base < Report::Chainable |
|
|
|
|
include Report::QueryUtils |
|
|
|
@ -19,10 +17,7 @@ class Report::GroupBy |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def self.cache_key |
|
|
|
|
@cache_key ||= begin |
|
|
|
|
abbrev = Abbrev.abbrev(engine::GroupBy.all.map(&:underscore_name)) |
|
|
|
|
abbrev.keys.detect { |key| abbrev[key] == underscore_name }.to_s |
|
|
|
|
end |
|
|
|
|
@cache_key ||= underscore_name |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def cache_key |
|
|
|
|