README.markdown in by_star-0.6.1 vs README.markdown in by_star-0.6.2
- old
+ new
@@ -220,9 +220,22 @@
Post.by_day("next tuesday")
This will return all posts for the given day.
+## Sum By Day (`sum_by_day`)
+
+
+To sum records for the current day:
+
+ Event.sum_by_day
+
+The `sum_by_day` method's second argument works in the same was as `by_day`, accepting Time, String, Date and chronicable strings:
+
+ Event.sum_by_day(:value, Time.now)
+ Event.sum_by_day(:value, Date.today)
+
+
## Current Weekend (`by_current_weekend`)
If you are currently in a weekend (between 3pm Friday and 3am Monday) this will find all records starting at 3pm the previous Friday up until 3am, Monday.
If you are not in a weekend (between 3am Monday and 3pm Friday) this will find all records from the next Friday 3pm to the following Monday 3am.
\ No newline at end of file