From 1b5b53da5e4beb24dc7d41a1e9e5d72b82586985 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 12 Apr 2011 20:29:35 -0700 Subject: [PATCH] common @jonleighton :bomb: --- activerecord/test/models/post.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index 7055380d85..a91c10276b 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -13,8 +13,7 @@ def self.limit_by(l) end def self.with_authors_at_address(address) - where('authors.author_address_id = ?', address.id) - .joins('JOIN authors ON authors.id = posts.author_id') + where('authors.author_address_id = ?', address.id).joins('JOIN authors ON authors.id = posts.author_id') end belongs_to :author do -- GitLab