Commit a6d29ebbc425d8940f92d063f42f3d9ae5055cca

Authored by Andrew Kane
1 parent 0bf5cfe6

Use reverse option for readme [skip ci]

Showing 1 changed file with 1 additions and 7 deletions   Show diff stats
README.md
... ... @@ -128,13 +128,7 @@ User.group_by_week(:created_at, last: 8, current: false).count
128 128 You can order in descending order with:
129 129  
130 130 ```ruby
131   -User.group_by_day(:created_at).reverse_order.count
132   -```
133   -
134   -or
135   -
136   -```ruby
137   -User.group_by_day(:created_at).order("day desc").count
  131 +User.group_by_day(:created_at, reverse: true).count
138 132 ```
139 133  
140 134 ### Keys
... ...