aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-04-12 20:29:35 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-04-12 20:29:35 -0700
commit1b5b53da5e4beb24dc7d41a1e9e5d72b82586985 (patch)
tree17d65b38adb8940d0c8682a32b9fdd34223b5f86 /activerecord
parentf0e198bfa1e3f9689e0cde1d194a44027fc90b3c (diff)
downloadrails-1b5b53da5e4beb24dc7d41a1e9e5d72b82586985.tar.gz
rails-1b5b53da5e4beb24dc7d41a1e9e5d72b82586985.tar.bz2
rails-1b5b53da5e4beb24dc7d41a1e9e5d72b82586985.zip
common @jonleighton :bomb:
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