Sha256: 22c9cfa3121924856758ed46db338cec6ba299f176214153ce448273c91b00b3

Contents?: true

Size: 629 Bytes

Versions: 13

Compression:

Stored size: 629 Bytes

Contents

class Model
  include Mongoid::Document

  field :field1, type: Integer, default: 0
  field :field2, type: Integer, default: 0
  field :field3, type: Integer, default: 0

  field :day,    type: Date
end

class Report1
  include Mongoid::Report

  aggregation_field :field1, for: Model
end

class Report2
  include Mongoid::Report

  attach_to Model do
    aggregation_field :field1
  end
end

class Report3
  include Mongoid::Report

  group_by :day, for: Model

  aggregation_field :field1, for: Model
end

class Report4
  include Mongoid::Report

  attach_to Model do
    group_by :day

    aggregation_field :field1
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongoid-report-0.1.6 spec/support/models.rb
mongoid-report-0.1.5 spec/support/models.rb
mongoid-report-0.1.3 spec/support/models.rb
mongoid-report-0.1.2 spec/support/models.rb
mongoid-report-0.1.1 spec/support/models.rb
mongoid-report-0.1.0 spec/support/models.rb
mongoid-report-0.0.11 spec/support/models.rb
mongoid-report-0.0.10 spec/support/models.rb
mongoid-report-0.0.9 spec/support/models.rb
mongoid-report-0.0.8 spec/support/models.rb
mongoid-report-0.0.7 spec/support/models.rb
mongoid-report-0.0.6 spec/support/models.rb
mongoid-report-0.0.5 spec/support/models.rb