Skip to content

Commit

Permalink
common @jonleighton 💣
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Apr 13, 2011
1 parent f0e198b commit 1b5b53d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/test/models/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit 1b5b53d

@vijaydev
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's up with the commit msg? :)

@tenderlove
Copy link
Member Author

@tenderlove tenderlove commented on 1b5b53d Apr 13, 2011 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.