Sha256: 75250852c4e0beaefcb98e773c49995bd77900d1a7b04253e155cbe4614677e7

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

module Mongoid
  module Report

    AttachProxy = Struct.new(:context, :collection, :options) do
      def aggregation_field(*fields)
        context.aggregation_field(*fields, options.merge(for: collection))
      end

      def group_by(*fields)
        context.group_by(*fields, options.merge(for: collection))
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid-report-0.0.10 lib/mongoid/report/attach_proxy.rb
mongoid-report-0.0.9 lib/mongoid/report/attach_proxy.rb
mongoid-report-0.0.8 lib/mongoid/report/attach_proxy.rb
mongoid-report-0.0.7 lib/mongoid/report/attach_proxy.rb
mongoid-report-0.0.6 lib/mongoid/report/attach_proxy.rb