Skip to content
Browse files

Fix incorrect description of the returned results.

  • Loading branch information...
1 parent 5b6a423 commit 4a376e48b93060e61af6b5852995e2e55a3d1a04 @r00k r00k committed May 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/active_record_querying.textile
View
4 railties/guides/source/active_record_querying.textile
@@ -489,10 +489,10 @@ Order.group("date(created_at)").having("created_at < ?", 1.month.ago)
The SQL that would be executed would be something like this:
<sql>
-SELECT * FROM orders GROUP BY date(created_at) HAVING created_at < '2009-01-15'
+SELECT * FROM orders GROUP BY date(created_at) HAVING created_at < '2011-04-27'
</sql>
-This will return single order objects for each day, but only for the last month.
+This will return single order objects for each day, but only those that are at least one month old.
h3. Overriding Conditions

0 comments on commit 4a376e4

Please sign in to comment.
Something went wrong with that request. Please try again.