pull/6827/head
jwollert 14 years ago
commit 25b1d3c5af
  1. 6
      app/models/report/chainable.rb
  2. 5
      app/models/report/group_by/singleton_value.rb

@ -1,5 +1,5 @@
# Proviedes convinience layer and logic shared between GroupBy::Base and Filter::Base.
# Implements a dubble linked list (FIXME: is that the correct term?).
# Provides convinience layer and logic shared between GroupBy::Base and Filter::Base.
# Implements a double linked list (FIXME: is that the correct term?).
class Report < ActiveRecord::Base
class Chainable
include Enumerable
@ -72,7 +72,7 @@ class Report < ActiveRecord::Base
engine.chain_initializer.push block
end
inherited_attribute :label
inherited_attribute :label, :default => :translation_needed
inherited_attribute :properties, :list => true
class << self

@ -1,5 +1,10 @@
class Report::GroupBy
class SingletonValue < Base
dont_display!
def define_group(sql)
sql.select "1 as singleton_value"
sql.group_by "singleton_value"
end
end
end

Loading…
Cancel
Save