lib/mongoid/report/attach_proxy.rb in mongoid-report-0.1.6 vs lib/mongoid/report/attach_proxy.rb in mongoid-report-0.1.7
- old
+ new
@@ -9,31 +9,37 @@
@attach_name = options.delete(:as) || collection
options = options.merge(attach_name: attach_name, for: collection)
super(context, collection, options)
end
- def aggregation_field(*fields)
+ def columns(*fields)
proxy_options = fields.extract_options!
proxy_options.merge!(options)
- context.aggregation_field(*fields, proxy_options)
+ context.columns(*fields, proxy_options)
end
- def group_by(*fields)
+ def column(*fields)
proxy_options = fields.extract_options!
proxy_options.merge!(options)
- context.group_by(*fields, proxy_options)
+ context.column(*fields, proxy_options)
end
- def filter(*fields)
+ def mapping(*fields)
proxy_options = fields.extract_options!
proxy_options.merge!(options)
- context.filter(*fields, proxy_options)
+ context.mapping(*fields, proxy_options)
end
- def column(*fields)
+ def group_by(*fields)
proxy_options = fields.extract_options!
proxy_options.merge!(options)
- context.column(*fields, proxy_options)
+ context.group_by(*fields, proxy_options)
+ end
+
+ def filter(*fields)
+ proxy_options = fields.extract_options!
+ proxy_options.merge!(options)
+ context.filter(*fields, proxy_options)
end
end
end
end