Skip to content
Browse files

Fix generated sql

  • Loading branch information...
1 parent b47b928 commit 13cc934cc8510aef0aa3989c118996bc508a985f @lifo lifo committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_record_querying.textile
View
2 railties/guides/source/active_record_querying.textile
@@ -645,7 +645,7 @@ Client.all(:joins => 'LEFT OUTER JOIN addresses ON addresses.client_id = client.
This will result in the following SQL:
<sql>
-SELECT clients.* FROM clients INNER JOIN addresses ON addresses.client_id = clients.id
+SELECT clients.* FROM clients LEFT OUTER JOIN addresses ON addresses.client_id = clients.id
</sql>
h4. Using Array/Hash of Named Associations

0 comments on commit 13cc934

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