lib/mongoid/report.rb in mongoid-report-0.1.0 vs lib/mongoid/report.rb in mongoid-report-0.1.1
- old
+ new
@@ -62,14 +62,13 @@
def filter(*fields)
define_report_method(*fields) do |_, report_name, options|
queries = self.settings_property(report_name, :queries)
options.each do |key, value|
- value = value.call if value.respond_to?(:call)
- queries
- .concat([{
- '$match' => { key => value }
- }])
+ queries
+ .concat([{
+ '$match' => { key => value }
+ }])
end
end
end
def group_by(*fields)