Skip to content

Commit

Permalink
Added support for Groupdate 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 5, 2018
1 parent 1ac21ba commit 1af21f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Order.calculate_all(:count, :max_price, &OpenStruct.method(:new))
calculate-all should work with [groupdate](https://github.com/ankane/groupdate) too:

```ruby
Order.group_by_year(:created_at, last: 5, default_value: {}).calculate_all(:price_min, :price_max)
Order.group_by_year(:created_at, last: 5).calculate_all(:price_min, :price_max)
=> {
Sun, 01 Jan 2012 => {},
Tue, 01 Jan 2013 => {},
Expand Down

0 comments on commit 1af21f4

Please sign in to comment.