aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/models/post.rb3
1 files changed, 1 insertions, 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 @@ class Post < ActiveRecord::Base
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