Commit 5cbbc603b50015d224d6da0e8598d150ac97fd12
1 parent
bb96502a
Exists in
master
and in
17 other branches
Less wordy
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
README.md
@@ -107,7 +107,7 @@ To get a specific time range, use: | @@ -107,7 +107,7 @@ To get a specific time range, use: | ||
107 | User.group_by_day(:created_at, range: 2.weeks.ago.midnight..Time.now).count | 107 | User.group_by_day(:created_at, range: 2.weeks.ago.midnight..Time.now).count |
108 | ``` | 108 | ``` |
109 | 109 | ||
110 | -[master] To get the last N time periods from the current time, use: | 110 | +[master] To get the last N time periods from now, use: |
111 | 111 | ||
112 | ```ruby | 112 | ```ruby |
113 | User.group_by_week(:created_at, last: 8).count # last 8 weeks | 113 | User.group_by_week(:created_at, last: 8).count # last 8 weeks |