diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index b16983026ea17ccd9b09e8e59c1c8108d25fe784..265bad7bc25355d10def25d37ac67cfaa4297ba7 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -776,7 +776,7 @@ def association_instance_set(name, association) # # If you want to load all posts (including posts with no approved comments) then write # your own LEFT OUTER JOIN query using ON - # + # # Post.joins('LEFT OUTER JOIN comments ON comments.post_id = posts.id AND comments.approved = true') # # You must disambiguate column references for this fallback to happen, for example