lib/mongoid/report/attach_proxy.rb in mongoid-report-0.0.5 vs lib/mongoid/report/attach_proxy.rb in mongoid-report-0.0.6
- old
+ new
@@ -1,14 +1,14 @@
module Mongoid
module Report
- AttachProxy = Struct.new(:context, :collection) do
+ AttachProxy = Struct.new(:context, :collection, :options) do
def aggregation_field(*fields)
- context.aggregation_field(*fields, for: collection)
+ context.aggregation_field(*fields, options.merge(for: collection))
end
def group_by(*fields)
- context.group_by(*fields, for: collection)
+ context.group_by(*fields, options.merge(for: collection))
end
end
end
end