Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix incorrect description of the returned results.

  • Loading branch information...
commit 4a376e48b93060e61af6b5852995e2e55a3d1a04 1 parent 5b6a423
@r00k r00k authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.