Please sign in to comment.
The join_nodes must be passed to the JoinDependency initializer and t…
…herefore counted by the alias tracker. This is because the association_joins are aliased on initialization and then the tables are cached, so it is no use to alias the join_nodes later. Fixes #2556.
- Loading branch information...
Showing with 20 additions and 13 deletions.
|@@ -1,4 +1,6 @@|
|class Toy < ActiveRecord::Base|
|+ scope :with_pet, joins(:pet)|