spec/mongoid/report/column_spec.rb in mongoid-report-0.1.6 vs spec/mongoid/report/column_spec.rb in mongoid-report-0.1.7
- old
+ new
@@ -10,11 +10,11 @@
include Mongoid::Report
report 'example' do
attach_to Model do
group_by :day
- aggregation_field :field1
- column 'dynamic-field1' => ->(context, row) { row['field1'] * 10 }
+ columns :'dynamic-field1' => ->(context, row, options) { row['field1'] * 10 }
+ column :field1, :'dynamic-field1'
end
end
end
end