Skip to content
Browse files

Fix typo

  • Loading branch information...
1 parent 40ee167 commit 94527eaafbfc2a8952dc991c9d2f1593bd04e89a @Domon Domon committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/active_record_querying.textile
View
2 guides/source/active_record_querying.textile
@@ -1043,7 +1043,7 @@ Even though Active Record lets you specify conditions on the eager loaded associ
However if you must do this, you may use +where+ as you would normally.
<ruby>
-Post.includes(:comments).where("comments.visible", true)
+Post.includes(:comments).where("comments.visible" => true)
</ruby>
This would generate a query which contains a +LEFT OUTER JOIN+ whereas the +joins+ method would generate one using the +INNER JOIN+ function instead.

0 comments on commit 94527ea

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