lib/mongoid/report/attach_proxy.rb in mongoid-report-0.0.11 vs lib/mongoid/report/attach_proxy.rb in mongoid-report-0.1.0
- old
+ new
@@ -22,9 +22,16 @@
group_options = fields.extract_options!
group_options.merge!(options)
context.group_by(*fields, group_options)
end
+
+ def filter(*fields)
+ filter_options = fields.extract_options!
+ filter_options.merge!(options)
+
+ context.filter(*fields, filter_options)
+ end
end
end
end