diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-20 13:42:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-20 13:42:42 -0700 |
commit | d059fa6f0c923240ef39a372276a151827a6df5b (patch) | |
tree | eae25f2fad1ee5d6844f20f3f359cfcf69be2c25 /activerecord/lib/active_record/associations/join_dependency.rb | |
parent | fe67bc2a86f86bdc9c01c4ae54025f46cb7f0f55 (diff) | |
download | rails-d059fa6f0c923240ef39a372276a151827a6df5b.tar.gz rails-d059fa6f0c923240ef39a372276a151827a6df5b.tar.bz2 rails-d059fa6f0c923240ef39a372276a151827a6df5b.zip |
disconnect join_constraints from the instance
Diffstat (limited to 'activerecord/lib/active_record/associations/join_dependency.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index 5d1e41dabf..0969fc4ebd 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -168,7 +168,7 @@ module ActiveRecord chain = child.reflection.chain foreign_table = node.table foreign_klass = node.base_klass - child.join_constraints(foreign_table, foreign_klass, child.join_type, child.tables, child.reflection.scope_chain, chain) + child.join_constraints(foreign_table, foreign_klass, child, child.join_type, child.tables, child.reflection.scope_chain, chain) .concat make_joins(child) } end |